Remove arrow input type='date'

前端 未结 3 1532
悲&欢浪女
悲&欢浪女 2021-01-12 12:59

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:

What i\'ve tried

3条回答
  •  伪装坚强ぢ
    2021-01-12 13:22

    Try this:

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

提交回复
热议问题