简体   繁体   English

HTML链接无法在iPhone上使用

[英]html links not working on iphone

I'm having some trouble with my website. 我的网站出现问题。 Some of links are not working when I test the site with my iPhone but they work correctly on my desktop computer. 当我使用iPhone测试网站时,某些链接不起作用,但在我的台式计算机上它们可以正常工作。 I'm trying to figure out if this is a css/js issue. 我试图弄清楚这是否是css / js问题。 I haven't run into this issue before so I'm having some trouble trying to figure out how to debug it. 我之前没有遇到过这个问题,因此在尝试调试方法时遇到了一些麻烦。

<div class="row">
  <div id="primary" class="content-area main-content-inner col-sm-12 col-md-8 pull-left">...</div>
  <div id="secondary" class="widget-area col-sm-12 col-md-4" role="complementary">...</div>
</div>

Remove pull-left from your #primary div 从您的#primary div中删除pull-left

Since you're using col-* classes, they'll take care of floating positions, what happens in your case is that when you're in a small device, both divs (primary and secondary) take 12 columns, but one of them is floated left because of pull-left, so that div overlaps on the other one, that's why you couldn't click your link. 由于您使用的是col- *类,它们将处理浮动位置,因此您遇到的情况是,当您在小型设备中时,两个div(主要和次要)都占用12列,但其中之一由于向左拉而向左浮动,因此div与另一个重叠,这就是为什么您无法单击链接的原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM