html部分:
<body><p id="margin_box"></p></body>
jquery部分:
<script> $(function(){ var percent =0.15; $("#margin_box").css("height",window.document.body.clientheight*percent) })</script>
以上就是本文的全部内容,希望对大家的学习有所帮助,更多相关内容请关注!
相关推荐:
jquery mobile类库使用时加载导航历史的方法
基于json格式数据的简单jquery幻灯片插件(jquery-slider)的介绍
以上就是关于jquery将标签元素的高设为屏幕的百分比的介绍的详细内容。
