Home  >  Q&A  >  body text

关于盒子模型之边界的问题还有点不明白?

不理解为何边界有上下左右,margin:20px 10px 15px 30px;  这个究竟指的是什么啊?

小白小白2861 days ago1302

reply all(2)I'll reply

  • 数据分析师

    数据分析师2017-09-30 22:59:20

    Still not clear about the boundary of the box model? -PHP Chinese website Q&A -Still not clear about the boundary of the box model? -PHP Chinese website Q&A

    Take a look around and learn.

    reply
    0
  • 迷茫

    迷茫2016-12-19 16:52:29

    如果你同时写了两个及两个以上的盒子(块、层),如果不设边界,这些盒子就会连在一起。假设你写了两个盒子,一左一右,在不设边界的时候,这两个盒子就是紧紧相连的,如果你想这两个盒子之间有一些距离,就得设边界,20px 10px 15px 30px 分别是上 右 下 左。

    reply
    0
  • Cancelreply