标签导航:

在html5中,对于input type=

要显示它,使用以下内容 −

<input placeholder = "Date" class = "textbox-n" type = "text" onfocus = "(this.type = &#39;date&#39;)"  id = "date">

您还可以选择CSS −

input[type="date"]::before{
   color: #ffffff;
   content: attr(placeholder) ": ";
}
input[type="date"]:focus::before {
   content: "" !important;
}