为啥每一块的上下有间距呢?没看到有margin的代码啊
好好学习,天天向上!!!
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.
在html中,标签有自带的属性,块元素默认是有margin和padding的默认值,所以在编写页面时,需要通过css样式清除默认的padding和margin值!如div{margin:0; padding:0;}
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.
在html中,标签有自带的属性,块元素默认是有margin和padding的默认值,所以在编写页面时,需要通过css样式清除默认的padding和margin值!如div{margin:0; padding:0;}