gpt4 book ai didi

css - 隐藏 Google Chrome 中的日历图标

转载 作者:行者123 更新时间:2023-11-27 23:23:22 24 4
gpt4 key购买 nike

有谁知道如何在 Chrome 中隐藏日期字段上的日历图标?

<input type="date" />

当我查找它时,我发现我应该使用 ::-webkit-calendar-picker-indicator 但这似乎并不能解决问题。

最佳答案

尝试这样的事情

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-calendar-picker-indicator {
display: none;
-webkit-appearance: none;
}
<input type="date" class="date-input">

关于css - 隐藏 Google Chrome 中的日历图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57892727/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com