【发布时间】:2021-12-14 19:19:09
【问题描述】:
我一直试图让占位符内的大文本缩进仅在代码内。但是当我尝试缩进它时,代码会将缩进作为引号内的文字获取。
<div>
<textarea name="details" required id="details" class="largeText" placeholder="The student
claimed that he/she is the reincarnation of Don Quixote de La Mancha and attacked the
Instructor claiming that the later resembled a giant.">
</textarea>
</div>
我通常不会太在意 HTML 代码上有不成比例的大行,但这是为了上课,我现在很好奇。
【问题讨论】:
-
您是否尝试为您的文本区域设置行和列?
标签: html textarea placeholder