【发布时间】:2021-02-02 07:26:13
【问题描述】:
我有两个问题正在发生,占位符不会出现,每当我点击我的文本区域时,它就会从我点击的位置而不是左上角开始输入?
textarea {
outline: none;
resize: none;
text-align: start;
border: 1px solid black;
width: 100%;
overflow: hidden;
}
<textarea cols="70" rows="4" placeholder="Adding a rich description will help with the search result">
</textarea>
【问题讨论】:
-
为什么占位符不能替代标签的完美示例:-D
标签: html