当前位置: 动力学知识库 > 问答 > 编程问答 >

css - Text input doesn't go all the way up to end of input box

问题描述:

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

分享给朋友:
您可能感兴趣的文章:
随机阅读: