旧的CSS显示? [英] Old CSS showing up?
问题描述
我在styles.css中更改了CSS,我使用了Visual Studio,当我运行网站并检查元素时,它显示正在使用旧的CSS,但是我已将CSS完全更改为没有CSS并保存文件并重新运行网站,但仍然得到旧的CSS。
I had changed the CSS within my styles.css, I'm using Visual Studio and when I run the website and inspect element it shows the old CSS is being used, however I've changed the CSS completely to have no CSS and also saved the file and re-ran the website but still I get the same old CSS.
这是常见问题吗?我的浏览器(谷歌浏览器)会缓存CSS吗?
Is this a common problem? Does my browser (Google Chrome) cache the CSS by any chance?
推荐答案
所有浏览器都缓存CSS,您可以通常清除缓存通过重新加载页面两次或进入设置。如果问题仍然存在,请提供更多信息。
All browsers cache CSS, you can clear the cache usually by reloading the page twice or going into the settings. Please provide more information if this problem persists.
要在Windows上重新加载页面,不要,只需按F5或Ctrl + R. $ b改为使用Control + Shift + R或Control + F5或Shift + F5,因为这会重新加载包含缓存内容的当前页面。
To reload a page on Windows, do not simply press F5 or Control + R. Instead use Control + Shift + R or Control + F5 or Shift + F5 as this would reload your current page including cached content
这篇关于旧的CSS显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!