摘要:
<div id="bg"></div><style type="text/css"> #bg{width:200px;height:200px;top:50%;left:50%;position:absolute;margin-left:-100px;margin-top:-100px;}</style>解释:首先设置div的左上角在整个页面的50%处,然后再向上移动他宽度和高度的一半即可实现。 阅读全文
posted @ 2012-10-04 21:30
wcp_spring
阅读(550)
评论(2)
推荐(2)

浙公网安备 33010602011771号