如何在 pug/jade 中增加输入文本框的高度和宽度
how to increase height and width of a input text box in pug/jade
input(type="text" id="body" name="body" rows="100" cols="100" maxlength="300" tabindex="100" value="" rows="100" cols="100" autocomplete="off" required)
我已经这样做了,但没有用...
<input type="text" />
元素是单行输入字段。 Mozilla Web Docs 将它们描述为:
A single-line text field. Line-breaks are
automatically removed from the input value.
要有一个接受多行的输入,并为了使用 rows
和 cols
属性,您需要使用 <textarea>
元素而不是 <input>
.
input(type="text" id="body" name="body" rows="100" cols="100" maxlength="300" tabindex="100" value="" rows="100" cols="100" autocomplete="off" required)
我已经这样做了,但没有用...
<input type="text" />
元素是单行输入字段。 Mozilla Web Docs 将它们描述为:
A single-line text field. Line-breaks are automatically removed from the input value.
要有一个接受多行的输入,并为了使用 rows
和 cols
属性,您需要使用 <textarea>
元素而不是 <input>
.