我在将html链接到CSS时遇到问题。它不适用于Google Chrome,但适用于IE。它有什么问题吗?顺便说一句,我刚才下载了最新版本的Google Chrome。这是我的html:
body{
background:black;
color:white;
font-family:arial,helvetica,sans-serif;
float:left;
}
h1{
font:"courier new"
size:14px;
color:yellow;
font-weight:bold;
}
<!DOCTYPE html>
<html>
<head>
<title>test</title>
<meta charset="UTF-8"/>
<meta name="author" content="Alvex"/>
<link rel="stylesheet" href="../CSS/test.css"/>
</head>
<body>
<h1>Hello World</h1>
<p>Nothing here</p>
</body>
</html>
谢谢你!
如果它在IE中运行,则路径一定不是问题。您是否在chrome开发人员工具中检查了“网络”标签?查看是否加载.css文件。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句