html5中常被忘记的标签,属性

placeholder

placeholder是input中的属性,就是默认输入的text,当用户输入时,text会被清空。

用法

<input type ="text" placeholder="hello,testor" />
posted @ 2020-05-29 14:56  热爱前端知识  阅读(117)  评论(0编辑  收藏  举报