我真的不明白爲什麼我不能設法用我自己的圖片替換原來的明星句柄。 讓我們依靠plunker來了解。 我對此事閱讀author's documentation:例如10自舉滑塊自定義句柄
在前面plunker我做,因爲它是撰文指出:
HTML:
<input id="ex10" type="text" data-slider-handle="custom"/>
CSS:
.slider-handle.custom {
background: transparent url("http://icons.iconarchive.com/icons/custom-icon-design/pretty-office-8/128/Accept-icon.png");
}
的網址背景鏈接到我想看作爲句柄的圖片。 (替換默認星號)。
低於亞歷山大的評論新圖片: 似乎並沒有改變任何東西。
滑蓋handle.custom ::我沒有看到你的DIV .slider-handle.custom。你需要#ex10 {// css} –
它不會改變任何東西。我更新了另一張照片。 – BoobaGump
在這個例子中http://embed.plnkr.co/D3GJQn/preview star是僞元素 –