中心区在另一个(100%宽度)div内 [英] Center Div inside another (100% width) div
本文介绍了中心区在另一个(100%宽度)div内的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这里有一个简单的问题,不知道为什么会这么复杂。
Quite a "simple" problem here and not sure why it's being so complicated.
- 有100%
有任何想法吗? :)
Any ideas? :)
推荐答案
.parent { text-align: center; }
.parent > .child { margin: 0 auto; width: 900px; }
这篇关于中心区在另一个(100%宽度)div内的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文