input的width不包括padding 除非用css3的box-sizing:border-box;,这样你的宽就等于内边距+边框宽度了 转载于:https://www.cnblogs.com/lizhenlzlz/p/5945415.html