【发布时间】:2014-07-20 00:26:21
【问题描述】:
我已将页面上传到网络服务器。当我使用 IE 去那里并将浏览器模式切换到 IE 8 或 IE 7 以查看是否下载了 html5shiv 和 respond.js 时,我发现它们没有。有人知道为什么吗?我使用 bootstrap 推荐的模板,并在 .这是代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap 101 Template</title>
<!-- Bootstrap -->
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<!-- HTML5 Shim and Respond.js 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.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<h1>Hello, world!</h1>
<section>
<h2>how are you doing ?</h2>
</section>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
</body>
</html>
我上传的页面在那里http://toto3000.byethost24.com/bootstrap/basic%20ii.html
【问题讨论】:
-
它正在从我这里下载。已在网络选项卡中检查。
-
是的,它有效。我在 IE 中切换“浏览器模式”而不是“文档模式”,这就是我看不到这些文件的原因。我的错。
标签: html css twitter-bootstrap respond.js