- The element must be block-level, e.g.
display: block;
ordisplay: table;
- The element must not float
- The element must not have a fixed or absolute position
- The element must have a
width
that is notauto
使用“margin: 0 auto”实现水平居中的条件是什么?
最新推荐文章于 2022-12-20 15:30:20 发布