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

前端 未结 4 1125
孤城傲影
孤城傲影 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:14

    Both Safari's and Chrome's Web Inspector offers checkboxes where you can toggle the :active, :focus, :hover and :visited state of an element. Using those might be even easier.

    Safari:

    The checkboxes in Safari

    Chrome:

    The checkboxes in Chrome

提交回复
热议问题