亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

部分瀏覽器中點擊下拉菜單不顯示二級菜單

部分瀏覽器中點擊下拉菜單不顯示二級菜單

富百世 2016-12-27 22:07:28
我在本地新建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="#">下拉菜單項</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"></li>??? <li role="presentation"><a role="menuitem" tabindex="-1" href="#">下拉菜單項</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瀏覽器打開文件后點擊下拉菜單能正常顯示二級菜單,但用IE和Edge瀏覽器打開文件后點擊下拉菜單無反應。請問是什么原因?
查看完整描述

1 回答

?
鬧鬧l

TA貢獻9條經驗 獲得超4個贊

想兼容ie,就別用bootstrap。

查看完整回答
反對 回復 2016-12-27
  • 1 回答
  • 0 關注
  • 3755 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號