![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
css
文章平均质量分 86
苦逼的koala
这个作者很懒,什么都没留下…
展开
-
CSS实现垂直居中
一、阅读张鑫旭博客有感http://www.zhangxinxu.com/wordpress/?p=3794 他写的是实现绝对定位元素的居中,有三种方法 (1)兼容性较好的方法: .element{ Width:600px;height:400px; Position:absolute;left:50%;top:50%; /*水平居中*/ Margin-top:-200px;原创 2015-07-14 20:34:58 · 495 阅读 · 0 评论 -
CSS实现垂直居中
一、阅读张鑫旭博客有感http://www.zhangxinxu.com/wordpress/?p=3794 他写的是实现绝对定位元素的居中,有三种方法 (1)兼容性较好的方法: .element{ Width:600px;height:400px; Position:absolute;left:50%;top:50%; /*水平居中*/ Margin-top:-200px;原创 2015-08-25 14:17:46 · 472 阅读 · 0 评论