Does a CSS border on a <div> act differently?
1 answer
, HTML. , - , W3C set width, .
(IE < 8 ..), :
div.style {
/* By default, browsers would have set this as content-box */
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
}
( ) width <div>.
, :
button.style, textarea.style {
box-sizing: content-box;
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box;
}
, .
+6
