标签:
使用绝对定位,先设置DIV的定位上和左分别为50%,然后使用负边界,边界大小是DIV的高度和宽度的一半答案补充代 码如下:width:1003px;height:600px; background- color:#000000; position:absolute; left:50%; top:50%; margin-left:-501.5px; margin-top:-300px
DIV垂直居中
原文地址:http://www.cnblogs.com/toSeeMyDream/p/5575297.html