我创建了一个div和一个输入框。在输入框中,我设置了自动聚焦。当页面加载时,光标会聚焦在输入框上。但是光标碰到边框,所以我看不清楚光标。有没有办法将光标从左侧移动到右侧。我只希望光标触摸到单词添加一个列表的前面。明显的例子可以在Stack Overflow页面和标题区域找到。请给出建议。谢谢。
<div
style = "white-space: normal;word-break: break-all; width: 240px; min-height: 35px; border-radius: 3px; margin-left: auto; margin-right: auto; text-align: center; background-color: #ffffff; margin-top: 5px; " >
<input class = "list-name-field" id = "SAVE_LIST" autofocus="autofocus" style="width: 230px; min-height: 35px; border: 0; " type="text" name="" placeholder = " Add a List...">
</div>
padding
或text-indent
- Rayon