问题
Actually I'm working on a small projects with XAMPP server, Most of the times I have this crazy problem,When I change anything in my CSS file it doesn't any effect but when I restart my XAMPP apache server several times it works fine. anyone knows how I can fix this problem permanently?
回答1:
Are you using browser caching?
Maybe just try a hard refresh CTRL+F5
Sorry if this is obvious and you have already tried it!
回答2:
The xampp cannot be the problem, You can verify it by opening the .html file directly in the browser. The possible problem could be you havent set the path for your css file correctly.
Refer http://www.w3schools.com/html/html_css.asp
or try inline code for testing that your changes are seen properly.
If there is cache problem try open in incognito window
tricky way:
1) open your html file at local host on the browser.
2) now press Shift+ctrl+J to open the console.
3) now you'll find 'Source' option (right-side of console option) at the top of new window.
4) click 'source' option and then you''l find your folder having all the .html, .css, .js, .php files available at local host.
5) open the appropriate file (what you what to edit) and modify it.
6) press ctrl+S to save your modification.
now you will see the changes.(according to your modification)
来源:https://stackoverflow.com/questions/41502863/xampp-server-does-not-load-css-files