Navbar链接在Internet Explorer 11中不起作用

时间:2016-10-03 05:40:59

标签: html5 twitter-bootstrap-3 internet-explorer-11

以下导航栏在Internet Explorer中无法单击。我一直在使用Bootstrap 3.

<!DOCTYPE HTML>
<head>
<!-- force IE8+ into standards mode -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">

<title>XYZ Management Pvt Ltd.</title>

<!-- Custom CSS -->
<link href="css/management.css" rel="stylesheet">

<!-- Custom Fonts -->
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico">
<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">    

<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">

<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">

<!-- 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="js/html5shiv.min.js"></script>
  <script src="js/respond.min.js"></script>
<![endif]-->

最后我还说了这个          

<script src="http://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="http://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>

</body>

在Internet Explorer中根本无法单击导航链接。

1 个答案:

答案 0 :(得分:0)

您需要在html的第一行显示<!DOCTYPE HTML>