我正在使用 HTML5、css3 和 Jquery 构建网页。当我尝试在 IE x 中查看该页面时,它没有显示页面,当我在 Developer 工具中 checkin 时,我得到了关注,
我尝试清除缓存、更改安全级别。我正在从本地文件夹加载我的 css,它已正确链接,因为我可以在其他浏览器中查看完整的页面。我用谷歌搜索了相同但没有得到任何线索原因在 HTML 和 CSS 选项卡中我可以看到我的代码但 IE x 不显示页面。知道为什么会这样
我的头<>
<head>
<meta content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Dashboard</title>
<link href="Content/css/normalize.css" rel="stylesheet" type="text/css">
<link href="Content/css/styles.css" rel="stylesheet" type="text/css">
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.9.1.js"></script>
</head>
最佳答案
针对文件系统进行测试通常不是一个好主意,尤其是在现代版本的 IE 中,它使用多种不同的隔离技术来影响本地文件的加载。
例如
- > http://blogs.msdn.com/b/ieinternals/archive/2012/06/20/loading-local-files-in-enhanced-protected-mode-in-internet-explorer-10.aspx
- > http://blogs.msdn.com/b/ieinternals/archive/2011/03/23/understanding-local-machine-zone-lockdown-restricted-this-webpage-from-running-scripts-or-activex-controls.aspx
- > http://blogs.msdn.com/b/ieinternals/archive/2011/08/12/internet-explorer-9.0.2-update-changes-file-protocol-and-cookie-naming.aspx
改为使用轻量级 Web 服务器(IIS Express、Cassini、Apache、node.js 等)通过 HTTP 提供您的内容并验证问题是否消失。
您没有提到您使用的是哪个版本的 Windows?
关于jquery - IE 10 不加载资源文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18524994/