<html>
<head>
<style type="text/css">
body { background: blue; }
* { color: red; }
</style>
</head>
<body>
<center>
<h1 id="1">
Das haben sie ausgewält
</h1>
<h2>
Diese Seite stellt ein Inhaltsverzeichniss und Index für Bücher aller Arten
<br>
Außerdem erfolgt eine kurze Vorstellung dieser Bücher mit dazugehörigen Cover nach diesem Muster:
</h2>
</center>
<h3>
<div id ="02">
<div id="01">
Hier wird die kurze Inhaltsangabe sowie Informationen zum Author stehen.
</div>
<div id="03">
<img src="buchregal.jpg" alt="Computer Man" style="width:805px;height:465px;">
</div>
</div>
</h3>
</body>
此代码正在运行,但将css放入样式表:
<link rel="stylesheet" type="text/css" href="formate.css">
它突然停止工作。我的HTML和formate.css都在同一个文件夹中。我认为这可能与浏览器有关,但我不确定。我尝试了其他帖子但没有任何效果。