2017-05-06 15 views
0

有沒有人有解決方案?我使用-webkit前綴,但沒有運氣。Safari5 8.0.5上沒有顯示HTML5輸入範圍滑塊runnable軌跡

input[type=range]::-webkit-slider-runnable-track { 
    width: 100%; 
    cursor: pointer; 
    background: $blue; 
    height: 1px; 
    margin-top: -10px; 
    border-radius: 1.3px; 
    border: 0.2px solid $blue; 
} 

它應該是這樣的: enter image description here

在Safari上8.0.5它看起來像這樣: enter image description here

+0

什麼你有沒有嘗試過?真的很難回答你的問題,沒有上下文。謝謝 –

+0

@ BenRondeau我編輯了我的問題 –

+0

你能提供一個可運行的代碼片段嗎?目前沒有HTML代碼。 – shaochuancs

回答

1

我的Safari只有CSS解決它

_::-webkit-full-page-media, _:future, :root input[type=range] { 
width: 100%; 
cursor: pointer; 
background: $blue; 
height: 1px; 
margin-top: -10px; 
border-radius: 1.3px; 
border-top: 0.5px solid $blue; 
background-color: $blue; 
}