$(document).ready(function()
{
alert($(window).height()); //浏览器窗口可视区域高度
alert($(document).height()); //浏览器窗口文档的高度
alert($(document.body).height());//浏览器窗口文档body的高度
alert($(document.body).ou... 2013-10-10 9:28 Thursday
2012-3-18 11:33 Sunday
想要 <div class="fdiv">我要浮动并居中</div>浮动并居中的方法其实很简单,代码如下:
.fdiv{
width: 300px;
height: 200px;
position: absolute;
background: #fff;
border: 1px solid #bbb;
left: 50%;
top: 50%;
margin...