搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

3.6.15 appears to have a problem with specificity. Selectors are being over-ridden by rules with much lower Specificity selectors. 3.6.14 was not doing this.

  • 4 回覆
  • 14 有這個問題
  • 1 次檢視
  • 最近回覆由 bgwebwriter

more options

I've just wasted at least a day's work chasing what appears to be a CSS bug that has cropped up in 3.6.15. Selectors with high Spec are being ignored in favour of selectors with much lower Spec.

I've just wasted at least a day's work chasing what appears to be a CSS bug that has cropped up in 3.6.15. Selectors with high Spec are being ignored in favour of selectors with much lower Spec.

所有回覆 (4)

more options

Can you give some example code or a web page that has this behavior?

more options

Last night I had an opportunity to isoolate the problem to one install on one Win7 box. A clean install solved it. Suspect a combination of dev add-ons had a lot to do with it. :) Sorry to have troubled you.

more options

Here's an example. Here's my CSS for links in my menu div: .menu a:link,a:visited { color:white; display:block; width:120px; font-weight:bold; text-align:center; padding:2px; text-decoration:none; text-transform:uppercase; font-size:10px; margin:0 0 10px 0; }

.menu a:hover,a:active { background-color:white; color:black; }

And then for another div on the same page:

.copy a:link,a:visited { text-decoration:underline; color:#C91313; } .copy a:hover,a:active { text-decoration:underline; color:#7D0E0E; }

These divs do not overlap. It seems that links in each div have the styles that are unique to them, but the styles that are defined in both, but defined differently, are ignored. Example: Different colors are defined for links in each div, but Firefox 3.6.15 displays all links with the same color.

more options

This method worked fine in the previous version of Firefox.