我无法将我的CSS样式表:样式表链接尚未工作
层次:
的index.html:
// index.html
<!DOCTYPE html>
<html>
<head>
<link href="css/index.css" type="text/css" rel="stylesheet">
</head>
<body>
<p class="blue">Hello</p>
</body>
</html>
index.css:
// index.css
.blue {
font:blue;
font-size: 20px;
}
你在控制台或网络标签中看到了什么? – SLaks
如果index.css位于css文件夹中,并且css文件夹与index.html位于同一目录中,那么我发现您的样式表链接没有问题。 – sheng
是的,这个问题不在代码本身中。它是我的后端框架。 – collinglass