简体   繁体   English

Firefox不应用计算样式

[英]Firefox not applying computed styles

I am using FF version 52.0. 我正在使用FF版本52.0。 I have changes made to a style sheet and Firefox is not applying them. 我对样式表进行了更改,但Firefox未应用它们。 I can see that Firefox is grabbing the style sheet with updates AND when inspecting can see that under computer styles that it is registering my changes. 我可以看到Firefox正在抓取具有更新的样式表,并且在检查时可以看到在计算机样式下它正在注册我的更改。 However when I inspect the Rules, those computed rules are not present on the element I'm attempting to alter. 但是,当我检查规则时,那些计算出的规则不在我尝试更改的元素上。

I have tested this in FF Private windows, off my machine, cleared caches in Advanced, all with the same result. 我已经在计算机上的FF专用窗口中对此进行了测试,清除了Advanced中的缓存,所有结果均相同。 Adding -moz- prefix for transform also appears to make no difference. 为转换添加-moz-前缀似乎也没有什么区别。 Ideas anyone? 有任何想法吗?

  • Firefox, there are other computed classes that are not applied Firefox,还有其他未应用的计算类
  • Firefox, computed classes not applied Firefox,未应用计算类
  • Chrome, computed styles applied Chrome,已应用计算样式

Firefox Does Not Apply Some Computed Styles Firefox不应用某些计算样式

Add ?v=1.0 to the end of your stylesheet include as in: 在样式表的末尾添加?v = 1.0,如下所示:

<link href="/css/style.css?v=1.0" rel="stylesheet" type="text/css" />

This will version your CSS, and make completely sure there is not caching issues, which I think there is. 这将对CSS进行版本控制,并完全确保没有缓存问题,我认为这是存在的。 If this works for you I can also show you how to auto version your CSS. 如果这对您有用,我也可以向您展示如何自动对CSS进行版本控制。

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

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