Inspect hovered element in Chrome?

前端 未结 21 1577
小鲜肉
小鲜肉 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

    Hit command-option-j to open the console. Click the window-looking button on the top right corner of the console to open the console in a different window.

    Then, in the Chrome window, hover over the element that triggers the popover, hit command- however many times you need to focus on the console, then type debugger. That'll freeze the page; then you can inspect the element in the Elements tab.

提交回复
热议问题