Inspect hovered element in Chrome?

前端 未结 21 1570
小鲜肉
小鲜肉 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 17:57

    The dev tools provides a way to inspect a hovered element like a tooltip.

    1 - Open the dev tools using F12.

    2 - Select "Elements" tab.

    3 - Select the parent element that contains the tooltip.

    4 - Click on "..." (on the line of the parent element) and after select "Break on"/"subtree modifications" (see image below)

    5 - Finally go back to application and make the Tooltip shows up. It should block the execution after the Tooltip gets visible

    Hope it can be useful for someone!

提交回复
热议问题