You should use box sizing property. Always use this in your reset.css :
* {box-sizing:border-box;}
在您的CSS文件中
input {box-sizing: border-box;}
use below css:
input {box-sizing: border-box;}
Also provide width to your input field
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.