搜尋 Mozilla 技術支援網站

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

Learn More

Disabling a CSS rule in the Page Inspector deletes it

  • 1 回覆
  • 1 有這個問題
  • 13 次檢視
  • 最近回覆由 cor-el

more options

I have been using the Firefox Page Inspector lately to see how it compares to Firebug. I noticed that if you disable a CSS rule by unchecking the checkbox next to it, it is still shown in the inspector, so you can check the box again and reenable it. However, if I click some other element, and then come back to the previous one, I found that the CSS rule seems to have been deleted entirely i.e. there is no checkbox for me to check to reenable that rule.

This is a pretty major problem for me, as Firebug and Chrome's inspector both remember rules you have disabled and give you the options of reenabling them again later, even if you click a different element. Is it a problem with my particular installation of firefox, or is it just a bug with the inspector?

I have been using the Firefox Page Inspector lately to see how it compares to Firebug. I noticed that if you disable a CSS rule by unchecking the checkbox next to it, it is still shown in the inspector, so you can check the box again and reenable it. However, if I click some other element, and then come back to the previous one, I found that the CSS rule seems to have been deleted entirely i.e. there is no checkbox for me to check to reenable that rule. This is a pretty major problem for me, as Firebug and Chrome's inspector both remember rules you have disabled and give you the options of reenabling them again later, even if you click a different element. Is it a problem with my particular installation of firefox, or is it just a bug with the inspector?

所有回覆 (1)

more options

I've seen that too.
What is happening that deleting and adding rules rules is the same as editing the style sheet via the style editor and changes that you make are actually edits in the style sheet file.
I agree that it would be better to comment out rules so you could at least enable them by editing the file rather than removing the rule completely.