Welcome to JiKe DevOps Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
155 views
in Technique[技术] by (71.8m points)

border变粗

我引了reset.css重置了浏览器默认样式,给h2标签添加了margin: 0,但是我发现h2的边框变粗了,相当于2px了,一旦去掉reset.css的margin:0,就正常了,然后给h2添加margin-top,又变粗了,这是什么原理呢?同理div也出现了这个情况

微信截图_20200814165954_02.png


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

Please log in or register to answer this question.

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to JiKe DevOps Community for programmer and developer-Open, Learning and Share
...