问题描述:

My input box is 40 pixels long, but when I start typing, the letters going go up to 20px before it stops and flows back in place as new letters are typed. How do I fix this?

网友答案:

Looks like your input has padding-right: 20px; with box-sizing: border-box set on it.

Check out this FIDDLE

相关阅读:
Top