CSS3----border-sizing
1 #wrapper input[type="text"], #wrapper input[type="password"] { 2 /* 3 display: flex; 4 line-height: 25px; 5 -webkit-box-flex: 1; 6 -moz-box-flex: 1; 7 -ms-flex: 1; 8 flex: 1; 9 */ 10 box-sizing: border-box; 11 -webkit-box-sizing: border-box; 12 -moz-box-sizing: border-box; 13 width: 100%; 14 padding: 9px; 15 box-shadow: none; 16 -webkit-appearance: none; 17 }
出处:http://cnblogs.com/daishuguang