问答详情
源自:5-1 下拉菜单(基本用法)

mac,firefox无效果...

<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>下拉菜单</title><link rel="stylesheet" href="css/bootstrap.min.css"></head><body> <div class="dropdown">  <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown">    下拉菜单    <span class="caret"></span>  </button>  <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">    <li role="presentation"><a role="menuitem" tabindex="-1" href="#">下拉菜单项</a></li>    <li role="presentation"><a role="menuitem" tabindex="-1" href="#">下拉菜单项</a></li>    <li role="presentation"><a role="menuitem" tabindex="-1" href="#">下拉菜单项</a></li>    <li role="presentation"><a role="menuitem" tabindex="-1" href="#">下拉菜单项</a></li>  </ul></div>   <script src="js/jquery.js"></script>  <script src="js/bootstrap.min.js"></script> </body></html>

提问者:82913002 2015-03-11 17:10

个回答

  • 慕雪7771229
    2015-12-22 22:09:28

    jQuery用1.9.0版本以上的