[英]CSS stylesheet doesn't work in FireFox
我的網站有問題。 它在除FireFox之外的所有主要瀏覽器中都能正常運行。 圖像不顯示,菜單不起作用,整體布局也不顯示。 我知道我沒有在img標簽中放置任何alt屬性,但是我認為這不是問題,因為它可以在所有其他瀏覽器中使用。
你們有解決辦法的想法嗎?
鏈接為http://portfolio.io.utwente.nl/student/roosmalenjjvan/
謝謝!
那是因為你曾經
<link href="css\style.css" rel="stylesheet" type="text/css">
<!-- ^^^ see incorrect slash here -->
通知\\
雖然它應該是/
喜歡
<link href="css/style.css" rel="stylesheet" type="text/css">
<!-- ^^^ this is correct slash here -->
您的css路徑是不正確的鏈接http://portfolio.io.utwente.nl/student/roosmalenjjvan/css \\ style.css
在這里,您使用<link href="css\\style.css" rel="stylesheet" type="text/css">
嘗試這種方式<link href="css/style.css" rel="stylesheet" type="text/css">
嘗試使用http://portfolio.io.utwente.nl/student/roosmalenjjvan/css/style.css
請更正您的CSS路徑...目前是
<link href="css\\style.css" rel="stylesheet" type="text/css">
請更改為
<link href="css/style.css" rel="stylesheet" type="text/css">
如果您在代碼的很多地方(在下面的示例中查看)都使用反斜杠(\\)而不是正斜杠(/),則只需替換反斜杠,
<link href="css\style.css" rel="stylesheet" type="text/css">
<link rel="icon" href="img\favicon.jpg" type="image/x-icon">
<img src="img\jopvanroosmalen.png">
替換為
<link href="css/style.css" rel="stylesheet" type="text/css">
<link rel="icon" href="img/favicon.jpg" type="image/x-icon">
<img src="img/jopvanroosmalen.png"> and so on
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.