我有更改滚动条颜色的任务。为此,我使用了 jscrollpane。这样做只会更改浏览器滚动。我也想更改下拉列表的颜色。我该怎么做?html是
<div class='columnLeft'>
<div class="labels w110">
<label>Country</label>
</div>
<div class="controls hello" id="hello">
@Html.DropDownList("ddlReCountry", null, new { @onchange = "onReBindCountry()", @class = "dropdown w325" })
</div>
</div>
javascript是
$(function () {
$('.hello ').jScrollPane();
$('#hello').bind(
'jsp-scroll-y',
function (event, scrollPositionY, isAtTop, isAtBottom) {
console.log('#pane1 Handle jsp-scroll-y', this,
'scrollPositionY=', scrollPositionY,
'isAtTop=', isAtTop,
'isAtBottom=', isAtBottom);
});
});
CSS是
.jspTrack {
background: lightgray !important;
}
.jspDrag {
background: gray !important;
}