简体   繁体   English

浏览器未显示CSS中所做的更改

[英]Browser not showing the changes made in CSS

I am using Netbeans for PHP development. 我正在使用Netbeans进行PHP开发。

If I make any change to CSS, it doesn't show in browser.Every time I have to close the NetBeans and then restart it to see the changes I made. 如果我对CSS进行了任何更改,它将不会显示在浏览器中。每次我必须关闭NetBeans然后重新启动它以查看所做的更改。

How can I show CSS updates without restarting the IDE? 如何在不重新启动IDE的情况下显示CSS更新?

So it could be two things. 因此可能是两件事。
First, if you are on your localhost, check in your php.ini file if the OPCache is not activated. 首先,如果您在本地主机上,则在未激活OPCache的情况下检入php.ini文件。 If its activated add ";" 如果已激活,请添加“;” to comment. 评论。 Careful, there is two php.ini file with MAMP WAMP XAMP, so check if it's the good one. 小心,MAMP WAMP XAMP有两个php.ini文件,因此请检查它是否是一个好文件。

Second, check if you use chrome to disable the cache while using the dev tool. 其次,检查在使用开发工具时是否使用chrome禁用缓存。 it can be done in the web devtools setting (could be the same with firefox). 可以在web devtools设置中完成(可能与firefox相同)。

May be it's another thing but try these two things. 可能是另一回事,但尝试这两件事。

尝试执行硬刷新CTRL + F5。

删除cookies后尝试重新加载页面...使用ctrl+shift+delete从浏览器中删除Cookie。

如果您使用的是chrome,请按F12,然后右键单击“刷新”按钮,然后选择空缓存并进行硬重装

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM