Can you make hovered state in Firebug “sticky?”

前端 未结 5 1038
长发绾君心
长发绾君心 2020-12-08 18:03

When I\'m debugging a site, sometimes the hovered selectors are a little long winded and similar to other ones, is there a way to apply a kind of \"sticky\" state to hover r

相关标签:
5条回答
  • 2020-12-08 18:34

    For what I wanted, there's an option for it in the Style dropdown above the CSS styles for the element. Just click the dropdown, and select :active or :hover and it keeps the styles for the selected and hovered element :)

    0 讨论(0)
  • 2020-12-08 18:37

    Sometimes items are not affected by the ":hover" state but by a mouseover in jQuery or similar, in that case you can manualy trigger the event (or force the event) in the console tab by writing:

    $('#a-random-selector').mouseover()
    

    Hope it helps, I came here looking for this answer but had to figure it out myself

    0 讨论(0)
  • 2020-12-08 18:43

    Open both firebug and web developer->Inspector. In the Inspector window, locate the code line where the hover starts, right click the mouse and choose the :hover. Then the hover state will stay, you can do whatever you want in firebug.

    0 讨论(0)
  • 2020-12-08 18:51

    When inspecting links, Firebug shows the default CSS state, i.e. styles applied to a:link. By default, the :hover and :active styles are not shown. Fortunately, you can change the state of the link by clicking Style and choosing the appropriate option:

    enter image description here

    0 讨论(0)
  • 2020-12-08 18:55

    You can try using Chrome inspector, and trigger :active :visited state etc.. on the element under styles.

    enter image description here

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