doumuyu0837 2017-03-18 16:11
浏览 213

Bootstrap Dropdown无法在Chrome和Firefox中运行

I have an issue with a Bootstrap dropdown menu. Few weeks ago it was opening with no problem in all the browsers, now I tested it in both Firefox and Chrome and they don't seem to work anymore. It only works in Internet Explorer and on mobile phones. Here is the code that contains it:

echo '
<ul class="nav navbar-nav navbar-right">
    <li class="dropdown">
        <a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="glyphicon glyphicon-menu-hamburger"></span> Menu <span class="caret"></span></a>
        <ul class="dropdown-menu">
            <li><a href="profile.php?id=' . $_SESSION["unique"] . '"><span class="glyphicon glyphicon-user"></span> Profile</a></li>
            <li class="' . $class4 . '"><a href="about.php" target="_blank"><span class="glyphicon glyphicon-info-sign"></span> About</a></li>
            <li><a href="logout.php"><span class="glyphicon glyphicon-log-out"></span> Sign out</a></li>
        </ul>
    </li>
</ul>';

I am aware that the bug may not be in the code posted above but it's weird. The code should have no bug. It works perfectly except this and just in some browsers.

The browsers can open other dropdowns and yeah, I tried to update them.

Here is the site (in construction, of course): http://logicwebschool.com

You can view the menu just by registering and logging in but I created an account for this purpose:

Email: no@email.com

Username: stackoverflow

Password: 123456

Thanks for taking your time to help me :)

  • 写回答

1条回答 默认 最新

  • douqian8238 2017-03-18 16:35
    关注

    There is no need for a response anymore. The Cloudflare Rocket Loader was the problem, I disabled it and everything is working now :D

    评论

报告相同问题?

悬赏问题

  • ¥15 Python爬取指定微博话题下的内容,保存为txt
  • ¥15 vue2登录调用后端接口如何实现
  • ¥65 永磁型步进电机PID算法
  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥15 latex怎么处理论文引理引用参考文献
  • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?