“Inspect” a hover element?

后端 未结 9 2041
借酒劲吻你
借酒劲吻你 2020-11-30 18:48

Note: I\'ve read similar threads, but none quite my issue - I can right click on it fine, it just then disappears.

I find \"Inspect Element\" an invaluable tool in C

9条回答
  •  半阙折子戏
    2020-11-30 19:33

    If the hover is triggered by JS, just pause script execution via the keyboard. This is a much simpler way of freezing the DOM than the other answers suggest.

    Here's how you do it in Chrome. I'm sure Firefox has an equivalent procedure:

    1. Open up Developer Tools and go to Sources.
    2. Note the shortcut to pause script execution—F8.

    3. Interact with the UI to get the element to appear.

    4. Hit F8.
    5. Now you can move your mouse around, inspect the DOM, whatever. The element will stay there.

提交回复
热议问题