search

Home  >  Q&A  >  body text

为啥每一块的上下有间距呢?

为啥每一块的上下有间距呢?没看到有margin的代码啊

小白小白3030 days ago1150

reply all(2)I'll reply

  • 数据分析师

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

    Why is there a gap between the top and bottom of each piece? -PHP Chinese website Q&A-Why is there a gap between the top and bottom of each block? -PHP Chinese website Q&A

    Please watch and learn.

    reply
    0
  • 迷茫

    迷茫2016-12-19 17:03:07

    在html中,标签有自带的属性,块元素默认是有margin和padding的默认值,所以在编写页面时,需要通过css样式清除默认的padding和margin值!如div{margin:0; padding:0;}

    reply
    1
  • Cancelreply