标签:height image img blog htm http 使用 设置 src
#div {
width:300px;
height:200px;
border:30px solid #8B8B8B;
position:fixed;
top:50%;
left:50%;
margin:-130px 0 0 -180px;
}

值得注意的是,使用margin调整位置的时候,如果有设置边框border,
那么div的实际宽度就是width + border-left + border-right,高和宽同理
标签:height image img blog htm http 使用 设置 src
原文地址:http://www.cnblogs.com/webSpider/p/6426381.html