Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试为 rangeSlider 左右手柄使用图像。我注意到这两个句柄都是 k-draghandle 类的锚元素,我正在通过 dom 操作向它添加一个子图像元素。
有没有更简单的方法来定制这些手柄?
最简单的方法是添加您自己的样式表来覆盖 k-draghandle。例如:
.k-slider .k-draghandle { background-image: url('data:image/gif;base64,R0lGODlhCwAbAJEAAMzMzJmZmQAAAAAAACwAAAAACwAbAAACMYyPBsus3R5cclZ4Y2Ciuz1RINAJXyhyXopK5dmOLxu6K5DB5J3T1vhD4YAYoiaRKAAAOwAA'); }
(它不漂亮,但你明白了)