如何在jquery绘图中更改图形数据上的光标



我想更改JQUERY PLOT插件中图形数据鼠标悬停时的光标样式。

你可以用css做i:

.plotclass:hover {
    cursor: url('pathtocursor');
}

我不知道你想要什么,但我认为这会对你有所帮助。

plot.bind("plothover", function(event, pos, item) {
    if(item) {
        document.body.style.cursor = 'pointer';
    } else {
        document.body.style.cursor = 'default';
    }
}

最新更新