Inspect element that only appear when other element is mouse overed/entered

前端 未结 4 1171
孤城傲影
孤城傲影 2021-01-29 17:46

Often I want to inspect an element (e.g. tooltip) that only appears when another element is mouse overed/entered. The element that appears, is made visible via jQuery\'s mousee

4条回答
  •  攒了一身酷
    2021-01-29 18:10

    It's fairly easy in Chrome 38.0.2094.0.

    Here's what it'll look like:

    Step-by-step:

    1. Open the DevTools in the Sources panel
    2. Make the tooltip appear by hovering over the button
    3. Press F8 to freeze the page
    4. Switch to the Elements panel and use the magnifying glass icon in the top left to select the tooltip

    If the tooltip shows up because of CSS, here's what you can do in that case:

    Step-by-step:

    1. Open the DevTools
    2. Select the triggering element in the dev tools (the link)
    3. Right click, and select "force element state", and select ":hover"
    4. Inspect the CSS tooltip

提交回复
热议问题