What's the relationship between margin, padding and width in different browsers?

后端 未结 5 2354
死守一世寂寞
死守一世寂寞 2021-02-20 00:07

CSS width value = display width of inside?

or

CSS width value = display width of inside + CSS margin-left + CSS margin-right?

5条回答
  •  星月不相逢
    2021-02-20 00:20

    I think IE before version 6 incorrectly included borders and padding in width and height. See: Microsoft Admits IE 5 is Messed Up

提交回复
热议问题