This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center
                            
                        
                    
                
                                6年前关闭。
            
                    
我正在虚拟主机上运行Wordpress构建。最新标题为style.css的样式表放在子主题文件夹中需要放置的位置,位于wp-content / themes / geisinger / style.css下。

Chrome和Firefox将显示相对于更新的CSS文件的更新内容。 Safari和Opera不是。

有问题的网站是我的客户:kurt4apa.org/campaign

我已经使用浏览器Web控制台来检查要拉的文件。 Chrome和Firefox展示了最新的CSS文件并已生效,但Safari / Opera则显示当天早些时候的样式表。我想强调的是,据我所知,style.css文件位于完全相同的位置。四个浏览器正在提取相同的文件,但是只有前两个正在使用更新的版本。

我尝试清除浏览器的缓存和cookie。除此之外,我完全迷失了解决方案。感谢所有帮助;谢谢。

最佳答案

也许这是一个怪异的服务器端缓存问题,要对其进行测试,请尝试将html代码末尾的数字从“ http://www.kurt4apa.org/campaign/wp-content/themes/geisinger/style.css?ver= 3.5.1”更改为“ http://www.kurt4apa.org/campaign/wp-content/themes/geisinger/style.css?ver= 3.5.2”

关于css - Safari/Opera/Chrome/FF从完全相同的文件位置提取不同的样式表,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/15054331/

10-12 12:25
查看更多