Remove the arrow that appears for input type=“time” for HTML5

前端 未结 2 1507
一生所求
一生所求 2021-01-13 15:08

I am using the default HTML5 sample line of code: I have used a custom background. I want to remove the black arrow that appears on the right.

The image shows a bl

相关标签:
2条回答
  • 2021-01-13 16:03
    input[type=number]::-webkit-inner-spin-button, 
    input[type=number]::-webkit-outer-spin-button { 
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        margin: 0; 
    }
    

    or

    /* Hide the cancel button */
    ::-webkit-search-cancel-button { 
        -webkit-appearance: none; 
    }
    
    /* Hide the magnifying glass */
    ::-webkit-search-results-button {
         -webkit-appearance: none; 
    }
    
    /* Remove the rounded corners */
    input[type=search] { 
        -webkit-appearance: none; 
    }
    
    0 讨论(0)
  • 2021-01-13 16:14

    Arrows

    input[type="time"]::-webkit-inner-spin-button {
      -webkit-appearance: none;
    }
    

    Clear (x) button

    input[type="time"]::-webkit-clear-button {
      -webkit-appearance: none;
    }
    
    0 讨论(0)
提交回复
热议问题