How to use chrome web inspector to view hover code

前端 未结 6 1685
野趣味
野趣味 2020-12-04 18:28

Using chromes web inspector to view code is very useful. But how do you view for example the hover code for a button? You will have to hover the mouse over the button and th

6条回答
  •  不知归路
    2020-12-04 19:27

    Now you can see both the pseudo-class style rules and force them on elements.

    To see the rules like :hover in the Styles pane click the small dotted box button in the top right.

    To force an element into :hover state, right click it.

    Alternatively, you can use Event Listener Breakpoints sidebar pane in the Scripts panel and select to pause in mouseover handlers.

提交回复
热议问题