简体   繁体   English

在 firefox5 css 样式表不适用于元素

[英]In firefox5 css style sheet is not applying for elements

In firefox4 css class are applying for elements but in firefox5 no class is applied for elements.在 firefox4 css class 中申请元素,但在 firefox5 中没有 class 申请元素。

In firebug of firefox5 i am getting "This element has no style rules. You can create a rule for it."在 firefox5 的萤火虫中,我得到“这个元素没有样式规则。你可以为它创建一个规则。”

Point to note is that css style sheet is loading in header properly in firefox5.需要注意的是,css 样式表在 Firefox5 中正确加载到 header 中。

Please let me know to solve this problem....请让我知道以解决此问题....

Thanks in advance.提前致谢。

I'm going to take a wild guess and say that you should remove the charset declaration from the top of your CSS file.我将大胆猜测并说您应该从 CSS 文件的顶部删除字符集声明。

This happened to me while I was learning D3js.这在我学习 D3js 时发生在我身上。 I solve the issues with我解决问题

<!DOCTYPE HTML5>

At first I had it without the 5. After that all were solved.起初我没有5。之后一切都解决了。

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

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