Home  >  Q&A  >  body text

代码中并未设置margin的值,为何会显示每个边框之间有间距呢?

代码中并未设置margin的值,为何会显示每个边框之间有间距呢?

我喜欢晴天我喜欢晴天2859 days ago874

reply all(2)I'll reply

  • 数据分析师

    数据分析师2017-09-30 23:22:23

    The margin value is not set in the code, so why is there a gap between each border? -PHP Chinese website Q&A-The margin value is not set in the code, why is there a gap between each border? -PHP Chinese website Q&A

    Please watch and learn.

    reply
    0
  • 阿神

    阿神2016-12-21 10:43:44

    每个浏览器都会对HTML进行一定的格式化,所以会出现边距,字体大小这些不同的样式,而且这种预定义的语义在不同浏览器中往往有很多差别,所以在实际的开发中往往需要使用reset css来消除这些差别。

    reply
    0
  • Cancelreply