Remove arrow input type='date'

2020-03-18 01:05发布

I want to remove the right arrow from input type date. I want to let is work on mobile too.

Here is exactly want I want to remove:

enter image description here

What i've tried

<input type="date" class="unstyled" />

.unstyled::-webkit-inner-spin-button,
.unstyled::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}

On desktop it doesen't appear..but on android devices appears.

标签: html css input
3条回答
smile是对你的礼貌
2楼-- · 2020-03-18 01:41

Solution for both android and web:

.unstyled {
    -webkit-appearance: none;
}
.unstyled::-webkit-inner-spin-button,
.unstyled::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}
查看更多
我只想做你的唯一
3楼-- · 2020-03-18 01:42

Try this

`.DatePickerInput::-webkit-inner-spin-button,
 .DatePickerInput::-webkit-calendar-picker-indicator {
     opacity:0;   
    -webkit-appearance: none;
 }`
查看更多
Luminary・发光体
4楼-- · 2020-03-18 02:01

Try this:

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}
查看更多
登录 后发表回答