为什么我的CSS无法在网络浏览器中更新? [英] Why is my CSS not updating in web browser?
问题描述
在对网站进行编码时,我保存了HTML和CSS文档,然后刷新了浏览器以查看更改.但是,当我刷新时,可以看到HTML更改,但是没有CSS更改.相反,我要做的是关闭窗口,然后再次重新打开以查看我的CSS更改.
When coding my website, I save HTML and CSS docs then refresh my browser to see the changes. However when I refresh the HTML changes are seen but the CSS changes aren't. Instead what I would have to do is close the window and reopen it again to see my CSS changes.
有什么想法为什么我不能刷新并看到CSS更改而不是关闭窗口并重新打开?
Any ideas why I cant just refresh and see the CSS changes instead of closing the window and reopening?
推荐答案
尝试硬"刷新浏览器...
Try a "hard" refresh of your browser...
http://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache
这个想法是绕过浏览器的缓存.不同的浏览器对此有不同的处理方式,此Wiki文章为每个主要的浏览器提供了一个很好的演练,介绍了如何执行此操作.
The idea is to bypass your browser's cache. Different browsers handle this differently, and this wiki article has a nice walk-through for each major browser on how to do this.
或者,您可以清除浏览器的缓存,这也将在Wiki文章中介绍.
Alternatively, you could clear your browser's cache, which is also covered by the wiki article.
这篇关于为什么我的CSS无法在网络浏览器中更新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!