How to customize the HTML5 input range type looks using CSS?

后端 未结 10 2268
粉色の甜心
粉色の甜心 2020-11-27 15:24

I want to customize the looks of the range input type in HTML5 to look something like a progress bar. I\'ve tried applying some common CSS attributes using CSS class but it

10条回答
  •  粉色の甜心
    2020-11-27 15:39

    input[type='range'] {
        -webkit-appearance: none !important;
        background:red;
        height:7px;
    }
    input[type='range']::-webkit-slider-thumb {
        -webkit-appearance: none !important;
        background:blue;
        height:10px;
        width:10px;
    }
    

提交回复
热议问题