Two box models

1. Standard box model
The width of the element = the width of the content.

2. IE box model
The width of the element = the width of the content + padding + border.

3. Switch between two box model methods
box-sizing: content-box;//standard box model (default)
box-sizing: border-box;//IE box model

Guess you like

Origin blog.csdn.net/weixin_44645309/article/details/112055787