在Google Chrome中停用本地日期戳 [英] Disable native datepicker in Google Chrome

查看:129
本文介绍了在Google Chrome中停用本地日期戳的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

日期选择器降落在Chrome 20上,是否有任何属性禁用它?
我的整个系统使用jQuery UI datepicker,它是交叉浏览器,所以我想禁用Chrome本地日期戳。有没有标签属性?

Date picker landed on Chrome 20, is there any attribute to disable it? My entire system uses jQuery UI datepicker and it's crossbrowser, so, I want to disable Chrome native datepicker. Is there any tag attribute?

推荐答案

隐藏箭头:

input::-webkit-calendar-picker-indicator{
    display: none;
}

并隐藏提示:

input[type="date"]::-webkit-input-placeholder{ 
    visibility: hidden !important;
}

这篇关于在Google Chrome中停用本地日期戳的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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