gpt4 book ai didi

html - Bootstrap 3 即使在使用 respond.js 后也无法在 IE 8 中运行

转载 作者:太空宇宙 更新时间:2023-11-04 04:16:16 27 4
gpt4 key购买 nike

我注意到 bootstrap 3 在 IE 中不工作,更具体地说,容器类不工作,但它在 chrome 和 firefox 中工作。我什至添加了 respond.js 这是我的代码

<html>
<head>

<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/style.css">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 8]>
<script src="js/html5shiv.js"></script>
<script src="js/respond.min.js"></script>
<![endif]-->

<link href='http://fonts.googleapis.com/css?family=Oxygen:400,300' rel='stylesheet' type='text/css'>


</head>
<body>

<div id="header" >
<h1 class="text-center">surrdes</h1>
<h2 class="text-center info_h1">Simple. Clean. Effective.</h2>
</div>
<div id="first_info">
<div class="container">
<h1 class="info_h1">sdfsdfsdfsdfsdfs</h1>
<p class="d_p">fdsfdsfewfdsfsd</p>
</div>


</div>
<div id="second_info">
<div class="container">
<h1 class="info_h1">fdsfsdfsdfsdfsdfsdfsdf</h1></div>

</div>


</body>
</html>

我做错了什么?我在整个互联网上搜索过仍然无法正常工作。

最佳答案

<!--[if lt IE 8]>仅为 IE7 及更早版本启用脚本(lt 表示低于)。你要<!--[if lt IE 9]><!--[if lte IE 8]>相反。

关于html - Bootstrap 3 即使在使用 respond.js 后也无法在 IE 8 中运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19889376/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com