我在本地新建html文件,代碼如下:<!DOCTYPE html><html>? <head>??? <meta charset="utf-8">??? <meta http-equiv="X-UA-Compatible" content="IE=edge">??? <meta name="viewport" content="width=device-width, initial-scale=1">??? <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->??? <title>Bootstrap 101 Template</title>??? <!-- Bootstrap -->??? <link href="css/bootstrap.min.css" rel="stylesheet">??? <link rel="stylesheet" href="css/style.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.3/html5shiv.min.js"></script>????? <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>??? <![endif]-->? </head>? <body>? <div>? <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown">??? 下拉菜單??? <span></span>? </button>? <ul role="menu" aria-labelledby="dropdownMenu1">??? <li role="presentation"><a role="menuitem" tabindex="-1" href="#">下拉菜單項(xiàng)</a></li>??? <li role="presentation"><a role="menuitem" tabindex="-1" href="#">下拉菜單項(xiàng)</a></li>??? <li role="presentation"><a role="menuitem" tabindex="-1" href="#">下拉菜單項(xiàng)</a></li>??? <li role="presentation"></li>??? <li role="presentation"><a role="menuitem" tabindex="-1" href="#">下拉菜單項(xiàng)</a></li>? </ul></div> ??? <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->??? <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>??? <!-- Include all compiled plugins (below), or include individual files as needed -->??? <script src="js/bootstrap.min.js"></script>? </body></html>用火狐和google瀏覽器打開文件后點(diǎn)擊下拉菜單能正常顯示二級(jí)菜單,但用IE和Edge瀏覽器打開文件后點(diǎn)擊下拉菜單無反應(yīng)。請問是什么原因?
添加回答
舉報(bào)
0/150
提交
取消