Inspect hovered element in Chrome?

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

    No code solution for JS activated tooltips:

    With Chrome's devtools inspect the containing / parent element of the tooltip. In the "elements" tab, right click on that container DOM element then choose "break on" > "subtree modifications". The next time you hover over the part of the DOM the tooltip is housed in, the JS code will be paused allowing you to inspect the contents of the tooltip.

提交回复
热议问题