摘要: 如何垂直居中一个浮动元素?// 方法一:已知元素的高宽#div1{ width:200px; height:200px; position: absolute; //父元素需要相对定位 top: 50%; left: 50%; margin-top:-100px ; //二分之一的... 阅读全文
posted @ 2014-10-27 18:23 丑萌嘞 阅读(176) 评论(0) 推荐(0)