如何在范围滑块之前和之后添加字体真棒或图像? 就像我对文本值所做的那样:
我尝试这样做,它适用于输出值
$('#wo').html('<i class="fa fa-child" aria-hidden="true"></i>' + ui.value + '<i class="fa fa-child" aria-hidden="true"></i>');
所以这是我的滑码
$(function () {
$(weight).slider({
animate: "slow",
max: 250,
mix: 75,
step: 25,
range: 'min',
change: function( event, ui ) {
$('#wo').html('<i class="fa fa-child" aria-hidden="true"></i>' + ui.value + '<i class="fa fa-child" aria-hidden="true"></i>');
$('.ui-slider-handle:eq(0)').html('<span class="price-handle value">' + ui.value + '</span>') ;
showMiles();
}
});