Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

Firefox's inspector does not display css rules for a specific website

  • 28 trả lời
  • 47 gặp vấn đề này
  • 1 lượt xem
  • Trả lời mới nhất được viết bởi Reiser

more options

The website in question is www.payk.ca When I right-click on an element and select "Inspect Element (Q)" I can see the html , but not the CSS rules being applied to a selected element, despite the fact that the CSS is being applied to the site appropriately. Chrome's inspector works, Microsoft Edge's inspector works, Firefox's doesn't.

The website in question is www.payk.ca When I right-click on an element and select "Inspect Element (Q)" I can see the html , but not the CSS rules being applied to a selected element, despite the fact that the CSS is being applied to the site appropriately. Chrome's inspector works, Microsoft Edge's inspector works, Firefox's doesn't.

Giải pháp được chọn

The problem occurs due to just one file:

AppData/Roaming/Mozilla/Firefox/Profiles/.default/SiteSecurityServiceState.txt

Either delete this file, or remove any lines that are related to the site in question (in my case, Shopify), and the CSS should display again.

Đọc câu trả lời này trong ngữ cảnh 👍 2

Tất cả các câu trả lời (8)

more options

Aha! I fixed it. The problem was that I had deleted a body tag font-family rule but inadvertently left the words 'sans-serif' in the code. Odd that it had no effect on the appearance of the page but broke Developer Tools.

Many thanks for your responses.

more options

I had the same problem on my website when both bootstrap 3.3.6 and prefixfree 1.0.7 were used. Removing either of these css solved the problem. So I removed prefixfree in my case.

Được chỉnh sửa bởi mfursov vào

more options

This happens for me at twitter.com. Not solved so far.

more options

Hi S-ed, I don't notice anything special about Twitter this morning. I didn't log in, just browsed a page I often read.

I find the rules occasionally go blank on a page and I have to reload to see the rules again. I haven't noticed a pattern as to what causes it. And I never remember to check the console for errors...

more options

If I'm reloading page with inspector's Style Editor opened, I'm getting this: http://i.imgur.com/unsxBB5.png Even though page is showing properly styled. No errors in console as well (except some dropped declarations). Oh. And, same thing in safe mode.

Được chỉnh sửa bởi S-ed vào

more options

Hi S-ed, I was thinking of the Rules panel of the Inspector, not the Style Editor.

I don't know what causes that error (red bar).

more options

@jsher2000 Yep that was just an addition, the rules tab sometimes just blank, and in console log links on the right are unclickable.

more options

I have same problem with another site. Safe mode doesn't help. Console shows warnings from 'unloadable' css, but clicking on warnings' links leads to same Style Editor. Sometimes open trouble css in new tab and some page reloads after it helps Inspector to work properly. Using new profile leads to infinite loading throbber in css list of Style Editor.

Được chỉnh sửa bởi Reiser vào

  1. 1
  2. 2