摘要:<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(); }) // 重新設(shè)置頁面高度 function resetMenuHeight() { var height = document.documentElement.clientHeight - 50; // 設(shè)置菜單高度 $('#menu').height(height); } // 設(shè)置iframe 高度 function resetMainHeight(obj) { // 獲取父級的高度 var height = parent.document.documentElement.clientHeight - 55; // 給當(dāng)前父級div重置高度 $(obj).parent('div').height(height); } </script>
批改老師:查無此人批改時間:2019-04-30 09:22:46
老師總結(jié):完成的不錯。layui框架很不錯,要多練習(xí)。繼續(xù)加油。