ionic——彩色range
2017-07-25 本文已影响0人
一只飞
.range input{
background:-webkit-gradient(linear,50%0%,50%100%,color-stop(0%,#ccc),color-stop(100%,#ccc));
background:linear-gradient(to right,#ff0000 0%,#ff00ff 14%,#0000ff 28%,#00ffff 46%,#00ff00 60%,#ffff00 75%,#ff0000 100%);//颜色随意改变
background-position:center;
background-size:98%4px;
background-repeat:no-repeat;
-webkit-appearance:none;
}