7

我在 ipad 和 android 上访问我的软件时遇到问题。这是在 ipad 上不起作用的 html。我无法点击子项

<div class="btn-group">
    <button class="btn dropdown-toggle" data-toggle="dropdown">Export <span class="caret"></span></button>
    <ul class="dropdown-menu">
        <#if  print?exists>
            <li><a href="javascript:print('${print}');">Print in PDF</a></li>
        </#if>
        <#if  printList?exists>
            <li><a href="javascript:print('${printList}');">Print list in PDF</a></li>
        </#if>
        <li><a href="javascript:exportListAt('${targetList}', 2);">Export to Excel</a></li>
        <li><a href="javascript:exportListAt('${targetList}', 1);">Export to CVS</a></li>
        <li><a href="javascript:exportListAt('${targetList}', 3);">Export to XML</a></li>
    </ul>
</div>

我已经破解了这个 html

jQuery(document).ready( function (){
            jQuery('.dropdown-toggle')
                .on('touchstart.dropdown', '.dropdown-menu', function (e) { e.stopPropagation(); })
                .on('touchstart.dropdown', '.dropdown-submenu', function (e) { e.preventDefault(); })
    })

当我在 ipad 和 android 上访问引导站点时也会发生此错误。

我能做些什么 ?

4

3 回答 3

3

最近,Bootstrap 2.2.2 发布了,您的问题是已修复的众多问题之一。

因此,一个好的解决方案是将您的 Bootstrap 版本更新到可用的最新版本。

查看更新日志,或直接下载最新的引导程序

我还写了一篇关于这个问题的简短博客文章

于 2012-12-09T15:24:22.120 回答
0

我相信您应该使用 a aelement 而不是 a button,例如 bootstrap docs:

<div class="btn-group">
  <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
    Action
    <span class="caret"></span>
  </a>
  <ul class="dropdown-menu">
    <!-- dropdown menu links -->
  </ul>
</div>

关于错误本身,你应该看看这个问题

于 2012-11-07T12:47:15.660 回答
0

在此处查看有关此问题的讨论:https ://github.com/twbs/bootstrap/issues/9543 解决方案:https ://github.com/twbs/bootstrap/commit/c0eabdda9fd8e97f44117bd4bd77dd1344039024 原来是 Bootstrap 问题。

于 2013-11-29T10:27:51.027 回答