Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/solr/3.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
Internet explorer event.target.style.cursor不';不工作_Internet Explorer_Raphael - Fatal编程技术网

Internet explorer event.target.style.cursor不';不工作

Internet explorer event.target.style.cursor不';不工作,internet-explorer,raphael,Internet Explorer,Raphael,我有一行代码: event.target.style.cursor = "pointer"; 它在FF和Chrome中工作良好,但在IE7中不起作用。我已经到处寻找了IE的语法,但是我没有找到 我应该提到我的event.target是一个经过Raphaeljs处理的svg形状 非常感谢 在旧版IEsevent.target是event.src元素。在IE9中,您还可以使用target。在这种情况下,您需要使用addEventListener()方法分配事件处理程序,而不是使用例如onclic

我有一行代码:

event.target.style.cursor = "pointer"; 
它在FF和Chrome中工作良好,但在IE7中不起作用。我已经到处寻找了IE的语法,但是我没有找到

我应该提到我的event.target是一个经过Raphaeljs处理的svg形状


非常感谢

在旧版IEs
event.target
event.src元素
。在IE9中,您还可以使用
target
。在这种情况下,您需要使用
addEventListener()
方法分配事件处理程序,而不是使用例如
onclick=some\u函数

请参见中使用
event.srcement
的示例