Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.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
css指针事件:无不在chrome中工作_Css_Google Chrome_Pointer Events - Fatal编程技术网

css指针事件:无不在chrome中工作

css指针事件:无不在chrome中工作,css,google-chrome,pointer-events,Css,Google Chrome,Pointer Events,这是一个奇怪的。我有一个箭头,用户点击它进入下一页(这是一个照片库)。因此,我将箭头图像包装在标签中,并将href指向下一页。它是硬编码的 <a href="thepagetogoto08.html"><img src="images/next.gif" alt="Right arrow" class="hide"></a> 奇怪的是,它实际上在Safari(桌面,尚未在IOS上测试)中工作,但在chrome、Firefox或opera中不工作。箭头隐藏,

这是一个奇怪的。我有一个箭头,用户点击它进入下一页(这是一个照片库)。因此,我将箭头图像包装在标签中,并将href指向下一页。它是硬编码的

 <a href="thepagetogoto08.html"><img src="images/next.gif" alt="Right arrow" class="hide"></a>
奇怪的是,它实际上在Safari(桌面,尚未在IOS上测试)中工作,但在chrome、Firefox或opera中不工作。箭头隐藏,但光标指针弹出,链接仍处于活动状态


指针事件是需要webkit的,还是最好找到其他方法来实现这一点?

隐藏类应该位于锚定标记上,而不是图像标记上,因为它是可单击的元素

<a href="thepagetogoto08.html" class="hide"><img src="images/next.gif" alt="Right arrow"></a>

OK。成功了。我想我被隐藏的实际图像弄糊涂了,而不是包括a标签的整个元素。
<a href="thepagetogoto08.html" class="hide"><img src="images/next.gif" alt="Right arrow"></a>