首页 > 解决方案 > 超链接在手机上无法点击,在桌面上可以正常工作

问题描述

我正在尝试用超链接替换 ​​nextgen-gallery(WordPress 插件)灯箱中的标题。超链接在桌面上运行良好,但在移动设备上无法点击。

某些元素在响应模式下阻止它,但我似乎找不到它。

我尝试增加 z-index,通过添加 .attr('onclick',"location.href... 甚至尝试图像可点击来使整个 div 可点击。

以上所有都在桌面模式下工作,而不是响应式。在我放弃之前可以使用一对新鲜的眼睛。

链接:http ://cnc-kamieniarstwo.pl/index.php/galerias/

原始html:

<div class="sl-caption pos-bottom" style="width: 288px;">DSC_0366small</div>

修改后的html,链接隐藏在响应式的某些元素后面,我似乎找不到:

<div class="sl-caption pos-bottom" style="width: 288px;"><a href="/form.php?id=DSC_0366small" style="clear:both;">Ask a Question</a></div>

谢谢

标签: javascriptjqueryhtmlcss

解决方案


添加此标签并检查'javascript:void(0)'


推荐阅读