当前位置: 代码迷 >> 综合 >> 块元素水平居中margin
  详细解决方案

块元素水平居中margin

热度:11   发布时间:2024-02-08 04:07:21.0

水平居中:

1. 设置div盒子的宽度

2. 设置margin左右为auto