Home  >  Article  >  Web Front-end  >  怎么设定输入框输入的字符不顶在输入框的最左端?_html/css_WEB-ITnose

怎么设定输入框输入的字符不顶在输入框的最左端?_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:00:531106browse

感觉在最左端的话不好看 最好输入的第一个字符与最左端边框有一定距离
像这样,好像空了一个字符的距离


有没有什么设定方法? 谢谢了


回复讨论(解决方案)

padding

padding-left:20px;

#2,#3 已试,可以,学习下

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn