如何在Microsoft Edge和Internet Explorer中使.css文件与.html文件一起运行



我有一个.html文件,它与CSS Zen Garden上的文件完全相同,是一个我根据自己的喜好重新设计样式的.CSS文件。这两个文件和所有材料都放在Desktop上的同一个文件夹中。当使用Google Chrome和Mozilla Firefox时,页面会打开并设置样式,但当尝试使用Internet Explorer和Microsoft Edge打开.html文件时,没有任何样式。

如何解决此问题?

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>CSS Zen Garden: The Beauty of CSS Design</title>
<link rel="stylesheet" media="screen" href="style.css?v=8may2013">
<link rel="alternate" type="application/rss+xml" title="RSS" 
href="http://www.csszengarden.com/zengarden.xml">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Dave Shea">
<meta name="description" content="A demonstration of what can be 
accomplished visually through CSS-based design.">
<meta name="robots" content="all">

<!--[if lt IE 9]>
<script src="script/html5shiv.js"></script>
<![endif]-->
</head>

事实证明,我对HTML的理解不够好。正在删除。。。评论?使其在IE和Microsoft Edge中都能工作。

来自

<!--[if lt IE 9]>
<script src="script/html5shiv.js"></script>
<![endif]-->

收件人。。。

<script src="script/html5shiv.js"></script>

应该工作。。。

最新更新