![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
盒子居中总结
zhangjie7467
技术
展开
-
盒子居总结(display:block)
任意盒子居中display:table *{ margin:0; padding:0; } html,body{ height:100%; } .element{ height:100%;原创 2017-08-31 15:28:15 · 227 阅读 · 0 评论 -
盒子居中总结(dispaly:flex)
任意盒子居中display:flex *{ margin:0; padding:0; } html,body{ height:100%; } .element{ height:100%;原创 2017-08-31 15:33:04 · 636 阅读 · 0 评论