返回 重置页面调试的...... 登陆

重置页面调试的函数

会上树的猪 2019-06-22 20:05:20 284

<script type="text/javascript">
 layui.use(['element','layer'], function(){
   var element = layui.element;
   $ = layui.jquery;

   resetMenuHeight();
 });

 // 页面高度
 function resetMenuHeight(){
  var height = document.documentElement.clientHeight - 50;
  $('#menu').height(height);
 }

 // 主操作区高度
 function resetMainHeight(obj){
  var height = parent.document.documentElement.clientHeight - 53;
  $(obj).parent('div').height(height);
 }

</script>


最新手记推荐

• 用composer安装thinkphp框架的步骤 • 省市区接口说明 • 用thinkphp,后台新增栏目 • 管理员添加编辑删除 • 管理员添加编辑删除

全部回复(0)我要回复

暂无评论~
  • 取消 回复 发送
  • PHP中文网