לאתר זה תהיה פונקציונליות מוגבלת בזמן שאנו מתחזקים אותו לשיפור החוויה שלך. אם מאמר מסויים לא פותר את הבעיה שלך וברצונך לשאול שאלה, קהילת התמיכה שלנו מחכה לעזור לך ב־Twitter תחת ‎@FirefoxSupport וב־Reddit תחת ‎/r/firefox.

חיפוש בתמיכה

יש להימנע מהונאות תמיכה. לעולם לא נבקש ממך להתקשר או לשלוח הודעת טקסט למספר טלפון או לשתף מידע אישי. נא לדווח על כל פעילות חשודה באמצעות באפשרות ״דיווח על שימוש לרעה״.

מידע נוסף

CSS not loading on a local website

  • 1 תגובה
  • 1 has this problem
  • 9 views
  • תגובה אחרונה מאת cor-el

more options

Hi,

I know there are similuar questions on the support site but no solutions worked for me. Other Browser load my Website fine, just not Firefox.

Im creating a local website with two stylesheets. One mostly finished and one for testing. I use Firefox to switch between these alternate stylesheets.

<link rel="stylesheet" type="text/css" href="D:\Users\****\Desktop\****Website\style.css" title="Stil No.1">

<link rel="alternate stylesheet" type="text/css" href="D:\Users\****\Desktop\****Website\style.css" title="Stil No.2">

On my Computer Firefox wont load the CSS file, on other computers in school it does.

I have the latest versions of Edge, Chrome and Firefox

Thanks


Pictures (somehow couldnt be uploaded to this thread):

Siteinformation: https://imgur.com/bBy6kRd

Chrome and Firefox Difference: https://imgur.com/GGuWJFa

Firefox CSS Switch: https://imgur.com/ghOA56Z (Here i dont undertstand why it doesnt even show up as Stil No.1/No.2)


!!!EDIT & FIX!!!

I fixed it myself. Apparently Firefox cannot cope with me giving the full link of the css file....

Instead i used .\style.css which now works fine

Hi, I know there are similuar questions on the support site but no solutions worked for me. Other Browser load my Website fine, just not Firefox. Im creating a local website with two stylesheets. One mostly finished and one for testing. I use Firefox to switch between these alternate stylesheets. <link rel="stylesheet" type="text/css" href="D:\Users\****\Desktop\****Website\style.css" title="Stil No.1"> <link rel="alternate stylesheet" type="text/css" href="D:\Users\****\Desktop\****Website\style.css" title="Stil No.2"> On my Computer Firefox wont load the CSS file, on other computers in school it does. I have the latest versions of Edge, Chrome and Firefox Thanks Pictures (somehow couldnt be uploaded to this thread): Siteinformation: https://imgur.com/bBy6kRd Chrome and Firefox Difference: https://imgur.com/GGuWJFa Firefox CSS Switch: https://imgur.com/ghOA56Z (Here i dont undertstand why it doesnt even show up as Stil No.1/No.2) !!!EDIT & FIX!!! I fixed it myself. Apparently Firefox cannot cope with me giving the full link of the css file.... Instead i used .\style.css which now works fine

השתנתה ב־ על־ידי PandaX

כל התגובות (1)

more options

Note that you need to use forward slashes in links (./style.css or simply style.css if the file is in the same folder as the HTML file).

Firefox doesn't know about the Windows file system and you would have to use the file protocol (file:///d:/). To see the exact link open the file in a Firefox window.