完整和完全的菜鸟在这里。我的外部样式表在 IE9 中运行良好,但在 Chrome 中根本无法运行。这是HTML。
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" href="default.css" />
</head>
<title>DCE</title>
</head>
<body>
<a href="index.html">
<img src="Images\logo.png" alt="Logo" width="50%" height="50%">
</a>
<br>
<hr style="height:5px">
<embed height="50" width="100" src="Theme.mp3">
<ul>ABC
<a href="pages\aboutus.html"><li>Z</li></a>
<a href="pages\AAAA.html"><li>Y</li></a>
</ul>
<h2>X</h2>
<p>Blah</p>
<p>Blah</p>
</body>
</html>
还有可怕的CSS。
h1 {color:#e03d89;}
body {background-image:url(Images/Background.png);}
h2 {font-family:Tahoma, Geneva, sans-serif;}
p {font-family:Arial, Helvetica, sans-serif;}
a:link {color:#e03d89;}
a:visited {color:#e97fa5;}
a:hover {color:#eb0258;}
a:active {color:#7a0453;}
p {margin-left: 30px; text-indent: 20px}
h2 {color:#e03d89;}
h2 {text-align:center}
感谢你们提供的任何帮助。我确定我在发布此内容时做错了可怕的事情,我所能做的就是希望大家能原谅我。