问题
My website works fine offline. When I upload it to the server, the CSS does not work. What makes it more confusing;
- I uploaded the website to my University server using the FTP account I was given. The website displays fine.
- I uploaded the website to my own server, the CSS doesn't work, neither does the favicon.
This means all the file links are working etc, but it isn't working on my server. Even the Google Fonts isn't working.!
I haven't changed any settings in my account etc.
1 - Folder Structure 2 - CSS links in my HTML
回答1:
- Make sure it is not about caching.
- Link css, favicon from your university server to see if it is not related with server configuration
来源:https://stackoverflow.com/questions/30687978/css-not-displaying-server-side