Inspect hovered element in Chrome?

前端 未结 21 1575
小鲜肉
小鲜肉 2020-12-22 17:44

I am trying to view, through Chrome\'s developer tools, how tooltips are structured on a site. However, even when I am hovered over the item, when I \"inspect element\", not

21条回答
  •  无人及你
    2020-12-22 18:01

    Click f12 go to the console tab and add the following:

    setTimeout(()=> {debugger},5000)
    

    This will give you 5 seconds to do whatever you want and it will break at 5 seconds. Then you can inspect the target element

    (ex. hover the element and wait 5 seconds then inspect..)

提交回复
热议问题