Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/411.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 是否有可能确保当光标悬停在某个区域上时,它不会变为“手”?_Javascript_Highcharts - Fatal编程技术网

Javascript 是否有可能确保当光标悬停在某个区域上时,它不会变为“手”?

Javascript 是否有可能确保当光标悬停在某个区域上时,它不会变为“手”?,javascript,highcharts,Javascript,Highcharts,在中,期望的结果是当光标悬停在图例上时,鼠标不会变为手动。我怎样才能做到呢 我不确定,但是像这样的东西有用吗 window.setTimeout("document.body.style.cursor = 'hand';", 2000); 你可以用一点css来完成 g.highcharts-legend, g.highcharts-legend-item tspan{ cursor:crosshair } 我用十字线只是为了演示,你可以选择 您还可以应用以下css: .inactive-

在中,期望的结果是当光标悬停在图例上时,鼠标不会变为手动。我怎样才能做到呢

我不确定,但是像这样的东西有用吗

window.setTimeout("document.body.style.cursor = 'hand';", 2000);

你可以用一点css来完成

g.highcharts-legend, g.highcharts-legend-item tspan{
  cursor:crosshair
}
我用十字线只是为了演示,你可以选择


您还可以应用以下css:

.inactive-link {
   pointer-events: none;
   cursor: default;
}

当鼠标悬停在图例上时,使用CSS指定光标类型。可能与我推荐的CSS技巧文章重复: