CSS does not load in Firefox

I have a webpage that I am testing in both IE and FF. It works fine in IE, but style sheets don't load in Firefox.

Has anyone else encountered this type of problem with Firefox?

Also note that this is only on my dev workstation downloading files locally ...

Here is the header section of the html file:

<head>

<link  rel="stylesheet" type="text/css" href="\\server\USERS$\myID\Projects\Intranet\css\common.css">
<link  rel="stylesheet" type="text/css" href="\\server\USERS$\myID\Projects\Intranet\css\css.css">

<title>8927.html</title>
</head>
+3
source share
5 answers

ok I fixed it using the following, and now it works in both IE and FF:

<link  rel="stylesheet" type="text/css" href="../css/common.css">
<link  rel="stylesheet" type="text/css" href="../css/css.css">
+1
source

UNC paths

If you are connecting to a file in a UNC path (for example, \\ server_name \ share \ file.ext), you will need to specify the path this way:

file://///servername/share/file.ext

, ://///servername, - .

: http://kb.mozillazine.org/Links_to_local_pages_don%27t_work

+4

CSS - Firefox, IE.

, css , :

  • FF
  • Chrome Safari

- , , CSS, , FF?

+1

, : , Firefox $ . , URL- $(.. % 24).

+1

I had a similar problem with javascript files from time to time. I think firefox is sometimes case sensitive, so make sure the path to your file and its actual name use the same capitalization.

+1
source

Source: https://habr.com/ru/post/1710890/


All Articles