我将我的 css 文件命名为 newstyle.css 当我查看网页时,我对 sublime text 中的 css 样式表所做的任何更改都不会显示。 如何确保我的链接有效?
<!DOCTYPE html>
<html>
<head>
<title>Ana Yasmeen </title>
<link href="css/newstyle.css" type="text/css" rel="stylesheet" />
</head>
<body>
最佳答案
您的标签看起来不错,因此请检查您的 css 文件链接,即 yourlocalwebsite.com/css/newstyle.css 应该列出您的 css 样式,否则链接是错误的,您需要将其重写为正确的路径。
关于html - 有人可以告诉我为什么我的 css 不能链接到 html 吗?我不知道我做错了什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36146992/