我是Cytoscape.js的新手。我設法創建了一個網絡。我想在鼠標懸停在節點上時將鼠標光標更改爲指針。基於我讀到的,我應該使用下面的代碼:當鼠標位於節點上時,如何將光標更改爲指針
style: cytoscape.stylesheet()
.selector('node')
.css({
'content': 'data(name)',
'text-valign': 'center',
'color': 'white',
'text-outline-width': 2,
'text-outline-color': '#888',
'cursor': 'pointer'
})
//other code omitted
令我吃驚的是,遊標沒有改變。它保持相同的默認光標。我錯過了什麼?請幫忙。謝謝。
好棒!我們需要這個。 –