摘要:
我们都知道 margin:0 auto; 的样式能让元素水平居中,而 margin: auto; 却不能做到垂直居中……直到现在。但是,请注意!想让元素绝对居中,只需要声明元素高度,并且附加以下样式,就可以做到: 12345.Absolute-Center { margin: auto; position: absolute; top: 0; left: 0; bottom: 0; righ... 阅读全文
posted @ 2013-10-12 09:57
汪磊
阅读(493)
评论(0)
推荐(1)