Remove arrow input type='date'

前端 未结 3 1533
悲&欢浪女
悲&欢浪女 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:14

    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;
    }
    
    0 讨论(0)
  • 2021-01-12 13:17

    Try this

     .DatePickerInput::-webkit-inner-spin-button,
     .DatePickerInput::-webkit-calendar-picker-indicator {
         opacity:0;   
        -webkit-appearance: none;
     }
    
    0 讨论(0)
  • 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;
    }
    
    0 讨论(0)
提交回复
热议问题