2016-08-14 65 views

回答

1

尝试这个CSS脚本:

input[type=range] { 
    -webkit-appearance: none; 
    width: 100%; 
    background: transparent; 

input[type=range]::-webkit-slider-thumb { 
    -webkit-appearance: none; 
} 

input[type=range]:focus { 
    outline: none; } 

input[type=range]::-ms-track { 
    width: 100%; 
    cursor: pointer; 
    background: transparent; 
    border-color: transparent; 
    color: transparent; 
} 
+1

就像我说的,我知道你可以做到这一点,但我宁愿依赖于一个js解。 – Chrisstar

+0

检查这些源文件: https://github.com/Stryzhevskyi/rangeSlider https://github.com/tovic/range-slider –

+1

Rangeslider是一个很好的基于JQUERY的扩展。这可能会帮助你.http://rangeslider.js.org/ –