阅读背景:

为什么边框会影响CSS中包含的块大小?

来源:互联网 

I understand that the height of a box in CSS is the height of the contents, excluding the margin and padding, but why with this sample, if you uncomment the border: line in the containing div, does the background color of the div extend above the first paragraph while if you have no border it doesn't?I understand that the height of a box in CSS is




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: