Box-sizing, know why, see English, "box type". I'll go, all right. is how you want to get the box model.
Come on, see what property values are available:
Box-sizing:content-box|border-box|inherit;
Well, three. Not bad
(1) Content-box: The width and height are applied to the content box of the element respectively. draws the inner margin and border of the element outside the width and height.
Understand, do not understand quickly to see the box model is what, you are a pig?
(2) Border-box: Any padding and borders specified for the element will be drawn within the set width and height. the width and height of the content can be obtained by subtracting the border and padding from the set width and height.
(3) Inherit: integrates Box-sizing property values from the parent element.
Well, that's it, what fun to add later.
CSS3 box-sizing Properties