html - 有人可以告诉我为什么我的 css 不能链接到 html 吗?我不知道我做错了什么?

标签 html css

我将我的 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/

相关文章:

javascript - 每张图像上都有特定文本的幻灯片

javascript - 如何从 Html Select 标签中隐藏第一项

javascript - HighCharts 中 xAxis 上具有负值和类别的柱形图

html - 我正在尝试将图像用作我的 "li a"之一,但 img 和 a 不会保持在同一高度。

HTML 文件不加载 style.css 文件

javascript - jQuery fadeIn 使页面滚动到顶部/跳转

html - 如何使用 Perl 将文件中的 CSS 定义合并到内联样式属性中?

html - 在 div 内的两个元素之间切换

html - 左右两张图片的导航栏,中间有一个搜索框

css - 使用 HTML 和 CSS 溢出到正文中?