我可以在< input type ="time"/>中使用占位符吗? [英] Can I use placeholder in <input type="time"/>

查看:82
本文介绍了我可以在< input type ="time"/>中使用占位符吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在<input type="time"/>

推荐答案

是的,您可以

占位符属性指定一个简短提示,用于描述输入字段的期望值

The placeholder attribute specifies a short hint that describes the expected value of an input field

它忽略了浏览器对

<input type="time"/>

例如铬显示

--:-- --

通过defualt,但firefox显示您已设置的占位符值

by defualt but firefox shows the placeholder value you have set

在这里检查:

jsfiddle

这篇关于我可以在&lt; input type ="time"/&gt;中使用占位符吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆