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 file converter 转换格式失败 报错 Error marking filters as finished,如何解决?
  • ¥15 ubuntu系统下挂载磁盘上执行./提示权限不够
  • ¥15 Arcgis相交分析无法绘制一个或多个图形
  • ¥15 关于#r语言#的问题:差异分析前数据准备,报错Error in data[, sampleName1] : subscript out of bounds请问怎么解决呀以下是全部代码:
  • ¥15 seatunnel-web使用SQL组件时候后台报错,无法找到表格
  • ¥15 fpga自动售货机数码管(相关搜索:数字时钟)
  • ¥15 用前端向数据库插入数据,通过debug发现数据能走到后端,但是放行之后就会提示错误
  • ¥30 3天&7天&&15天&销量如何统计同一行
  • ¥30 帮我写一段可以读取LD2450数据并计算距离的Arduino代码
  • ¥15 飞机曲面部件如机翼,壁板等具体的孔位模型