重置页面调试的函数

Original 2019-06-22 20:05:20 300
abstract:<script type="text/javascript"> layui.use(['element','layer'], function(){   var element = layui.element;   $ = layui.jquery;   reset

<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>


Correcting teacher:天蓬老师Correction time:2019-06-24 10:02:10
Teacher's summary:元素的位置信息很有意思, 而且属性有很多, 需要多做些才能 记得住

Release Notes

Popular Entries