可以是
var h=$(window).height();
$("#content .item").css('height',h+'px')
回复
对代码做了一些优化。你这里的话应该是content .item
var h=$(window).height();
$("#content .item").css('height',h+'px')
回复
自动读取浏览器的高度,不设置固定的高。CSS里面的高度都可以删掉了。
<script>
$(function(){
var h=$(window).height();
$("#content li").css('height',h+'px')
});
</script>
回复