📜  css 水平居中 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:47.007000             🧑  作者: Mango

代码示例5










Center Align Elements

To horizontally center a block element (like div), use margin: auto;

Note: Using margin:auto will not work in IE8, unless a !DOCTYPE is declared.