-2
我有一个由内容视图插件填充的页面。内容是特定类别的博客文章。我禁用了链接,以便人们只能看到该网页上的内容,并且无法点击缩略图转到帖子页面。我禁用了CSS的点击,但是,在移动设备上这不起作用。如同,如果我触摸缩略图,它仍然会将我带到帖子页面。不确定我是否有道理;这里是供参考页:禁用移动设备上的链接
http://studio.usualhabitat.com/portfolio/
这里就是我使用的是什么:
body.page-id-686 img.pt-cv-thumbnail {touch-action: none!important; pointer-events: none!important; cursor: default!important;}
body.page-id-686 .pt-cv-ifield a._self {touch-action: none!important; pointer-events: none!important; cursor: default!important;}
在这里发布您的代码,我们可以帮助你。 –
我编辑了这篇文章:) –