How do I inspect CSS pseudo classes with firebug?

前端 未结 3 1778
悲哀的现实
悲哀的现实 2021-02-05 04:25

I am struggling with a reluctant a:hover css style which I cannot override.

I tried to inspect the element in Firebug, but I cannot see why it won\'t work

相关标签:
3条回答
  • 2021-02-05 04:42

    A useful technique when resolving issues like this can be to compare the hover state and non-hover state. Open two instances of the browser (a dual or triple screen setup is useful), load the page you're working on in each window, then do what JohnP says in his answer to view the styles for the hover state in one window, the non-hover in the other, and and take the analysis from there. It's awkward in Firebug to compare the styles when the style dropdown covers the actual css detail pane, and whilst you can view the hover and non-hover state css in Firefug by moving the mouse over and off the element you're working on, doing a comparison this way is more tricky.

    0 讨论(0)
  • 2021-02-05 04:45

    Theres also the INSPECT ELEMENT option, just rightclick on the hovered element in Firefox + Firebug, and thats it. The style menu is handly too.

    0 讨论(0)
  • 2021-02-05 05:07

    It's pretty easy. Just select the element you want to inspect. And then, from the panel on the right side, click on the Style menu item. There you can select the pseudo class :hover

    EDIT

    Here's an image : enter image description here

    0 讨论(0)
提交回复
热议问题