【发布时间】:2018-03-28 08:24:36
【问题描述】:
我有一个fiddle,我正在尝试使输入框更大。
我能够让它更大,但出于某些原因the writing cursor starts from the middle of a box whereas I want it to start from the extreme top-left of the input box,这样我就可以在其中写更多类似于this 的内容。
我用来使输入框变大的 CSS 是:
input
{
padding: 3px;
width: 320px;
height: 120px;
}
我不确定我需要在我的 HTML(在小提琴中)和 CSS 中进行哪些更改,以使书写光标从输入框中的最左侧开始。
【问题讨论】:
-
对于多行输入,我建议使用
<textarea>而不是<input>。