abstrak:<script type="text/javascript"> // 加載layui.js layui.use('element',function(){ &nbs
<script type="text/javascript"> // 加載layui.js layui.use('element',function(){ var element = layui.element; $ = layui.jquery; resetMenuHeight(); }) // 重新設置頁面高度 function resetMenuHeight() { var height = document.documentElement.clientHeight - 50; // 設置菜單高度 $('#menu').height(height); } // 設置iframe 高度 function resetMainHeight(obj) { // 獲取父級的高度 var height = parent.document.documentElement.clientHeight - 55; // 給當前父級div重置高度 $(obj).parent('div').height(height); } </script>
Guru membetulkan:查無此人Masa pembetulan:2019-04-30 09:22:46
Rumusan guru:完成的不錯。layui框架很不錯,要多練習。繼續(xù)加油。