“NetworkError: 404 Not Found” /style.ccs

2019-07-17 01:13发布

I'm getting an error in firebug:

"NetworkError: 404 Not Found - (removed)/style.css"

What does that mean and what do I need to do?

Thanks!

5条回答
可以哭但决不认输i
2楼-- · 2019-07-17 01:55

If means that the css file you are trying to use does not exist at that location.

404 Not Found means exactly that, it couldn't find the file. If you click your link, you'll get an error page saying exactly that.

查看更多
聊天终结者
3楼-- · 2019-07-17 01:58

Wordpress CSS files usually don't reside in the root directory - they're in the theme's folder

Here is yours - (removed)/wp-content/themes/imbalance2/style.css

查看更多
欢心
4楼-- · 2019-07-17 01:58

As said by others a 404 error means the file was not found.

Sometimes this may be tricky. For instance I just moved files to a new server (CF11) from an old one (CF7) and my .css files wouldn't load: I was getting 404 errors. How could this be? I transferred over my entire directory and all the other files were being displayed.

The answer was that I needed absolute paths as opposed to relative paths. Sometimes you see an error and go WTF but retracing your steps and your assumptions will most often solve the problem.

查看更多
何必那么认真
5楼-- · 2019-07-17 02:00

HTTP 404 means exactly what it says -- File Not Found.

Somewhere in your document, you are linking to (removed)/style.css, and that file doesn't exist (wrong name, wrong location) on the server. There is a line in your code probably like this:

<link rel="stylesheet" type="text/css" href="(removed)/style.css">

pointing to it, and that needs to be changed to point to wherever that file is actually located.


Update:

Change that line to <link href="(removed)/wp-content/themes/imbalance2/style.css" rel="stylesheet" type="text/css" />

查看更多
Root(大扎)
6楼-- · 2019-07-17 02:03

A '404' simply tells you that the file you are looking for is not where you thought it would be. You must be using some content management system / framework which redirects '404' errors to that page, otherwise you see the standard browser page for that error.

What to do? Correct the path, add the file in the right place

查看更多
登录 后发表回答