bootstrap 下拉菜单未在 IE 11 中显示

bootstrap drop down menu not shown in IE 11

我在 windows 7 上使用 IE 11 时遇到 bootstrap 下拉菜单的问题。

当我点击按钮时,下拉菜单根本不显示。除了 JS 错误之外没有任何反应:script65535 调用对象无效。

有线索吗?

这是我的代码:

<div class="btn-group pull-right">
<button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown" aria-expanded="false">Action
    <span class="caret"></span>
    <span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu" style="right: 0; left: auto;" role="menu">
    <li>
        <a href="link1">item1</a>
    </li>
    <li>
        <a target="blank" href="link2">item2</a>
    </li>
    <li class="divider"></li>
    <li>
        <a target="blank" href="link3">item3</a>
    </li>
</ul>
</div>

头部分 CSS 和使用的 JS 库:

  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
  <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js" type="text/javascript"></script>
  <script src="https://code.jquery.com/ui/1.11.1/jquery-ui.min.js" type="text/javascript"></script>

显然这是来自 JS bootstrap 和 Jquery 版本...

替换为:

  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js" type="text/javascript"></script>
  <script src="https://code.jquery.com/ui/1.11.1/jquery-ui.min.js" type="text/javascript"></script>

作者:

  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js" type="text/javascript"></script>
  <script src="https://code.jquery.com/ui/1.11.2/jquery-ui.min.js" type="text/javascript"></script>

现在可以使用了。