我认为将 html 文件链接到 css 文件的方法是这样写:
<link type= "text/css" rel= "firststylesheet" href= "firststylesheet.css"/>
(假设我的 css 文件名为 firststylesheet.css
)但是当我将 css 和 html 文件上传到我的网站时,css 文件没有连接,所有网站正在阅读的都是我的html 文件。我该如何解决这个问题?
最佳答案
“rel”属性必须是“stylesheet”而不是“firststylesheet”
<link type="text/css" rel="stylesheet" href="firststylesheet.css"/>
关于html - sublime text 2 html和css之间的链接,github附加组件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16658699/