How to use chrome web inspector to view hover code

前端 未结 6 1683
野趣味
野趣味 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

    It's a little annoying, but you need to right click on the element, and then, keeping your mouse over the link, use your keyboard select the 'Inspect Element' link and press enter. This should show you the css for the hover pseudo class for the selected element.

    Here's hoping they make this a little easier in future builds.

提交回复
热议问题