[英]CSS and HTML will not link
直到幾天前,我一直在使用外部樣式表。 我不知道為什么我不再能夠從HTML鏈接到外部樣式表,因為我之前對此沒有任何問題。 我絕對找不到問題。
這可能很明顯,但是現在我真的很沮喪。
請幫忙!
我的檔案結構:
-Tutorial (folder) - index.html - stylesheet.css
h1 { color: green; }
<!doctype html> <html> <head> <title>Hello</title> <link rel="stylesheet" href="stylesheet.css"> </head> <body> <h1>Testing...</h1> </body> </html>
注意:
采用
<link rel="stylesheet" href="./stylesheet.css">
謝謝你們的幫助! 我發現我腦子里有了這個:
<link rel="stylsheet" href="stylesheet.css">
我在“ rel”中拼寫了樣式表錯誤。
現在工作正常!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.