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

后端 未结 5 2255
死守一世寂寞
死守一世寂寞 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:23

    It not only depends from the browser and version you choose, but also from the doctype of your html document. Internet explorer in "quirks mode" is for example completely different from Internet explorer with doctype XHTML 1.0 Transitional.

提交回复
热议问题