摘要: 第一种:#test{ height:auto!important; height:500px; min-height:500px; }第二种:#test { min-height:100px; background:#BBB; _height:100px; overflow: visible; } 参考:[1] 技术分享 IE6不支持min-height的解决办法.http://developer.51cto.com/art/201008/220386.htm.2013-04-28 阅读全文
posted @ 2013-04-28 09:10 长城的草 阅读(152) 评论(0) 推荐(0) 编辑
摘要: alert($(window).height()); //浏览器当前窗口可视区域高度 alert($(document).height()); //浏览器当前窗口文档的高度 alert($(document.body).height());//浏览器当前窗口文档body的高度 alert($(document.body).outerHeight(true));//浏览器当前窗口文档body的总高度 包括border padding margin alert($(window).width()); //浏览器当前窗口可视区域宽度 alert($(document).width());//浏览器当 阅读全文
posted @ 2013-04-28 09:05 长城的草 阅读(162) 评论(0) 推荐(0) 编辑