javascript - 超链接在手机上无法点击,在桌面上可以正常工作
问题描述
我正在尝试用超链接替换 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>
谢谢
解决方案
添加此标签并检查'javascript:void(0)'
推荐阅读
- laravel - cron 运行计划未在服务器上自动运行
- forms - 如何防止golang echo框架中特定字段的表单绑定?
- ruby-on-rails - 在rails 6上的table ruby中嵌套循环查看错误的顺序
- javascript - 如何在鼠标悬停时显示滚动条?
- c - 初学者问题/问题:Scanf 在 MacOS 终端中无法按预期工作
- c++ - 用指针实现删除重复功能
- python - 如何根据条件将 csv 拆分为 2 个数据框
- git - 在 gitlab 中是否可以在不记录的情况下推送更新提交?
- java - 在 tools.jar 中哪里可以找到 Treemaker 相关文档
- sql - Laravel 5.6.9 - 数据库计数给出不同的输出