concept

  • You can think of all HTML tags as a box model
  • The box model is mainly composed of four parts: content, padding, border and margin

    <img src=”https://noxussj.top:3000/2/1.png”></img>

The standard box model (W3C box model) Content-Box

  • Size of Box = Content

Weird box model (IE box model) border-box

  • Box Size = Content + Padding + Border

additional

  • This article is published through multiple platforms of “We Media” and will not be maintained after publication. If you have any objection to the content, you can discuss it in the GitHub below
  • The ongoing maintenance / 500 + face questions before update/notes 】 https://github.com/noxussj/In…
  • [3D city modeling using three. JS (Zhuhai City)] https://3d.noxussj.top/