[英]Disable only calendar modal of <input type = "date">
How to deactivate only the calendar modal that appears when clicking the calendar icon, in input of type date如何仅停用单击日历图标时出现的日历模式,输入日期类型
<input type="date">
Apply the following styles:应用以下样式:
input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-calendar-picker-indicator {
display: none;
-webkit-appearance: none;
}
input[type="date"]::-webkit-inner-spin-button, input[type="date"]::-webkit-calendar-picker-indicator { display: none; -webkit-appearance: none; }
<input type="date">
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.