Firebug: How to inspect elements changing with mouse movements?

前端 未结 13 2453
无人共我
无人共我 2020-12-04 13:01

Sometimes I need to inspect elements that are only showing up on a page if you put mouse over some area. The problem is that if you start moving mouse towards firebug consol

13条回答
  •  有刺的猬
    2020-12-04 13:33

    Open console:

    If you have javascript based tooltip, find applicable elements in console with appropriate selector. like below and confirm you able to find appropriate element with selectors.

    $('your selector') 
    

    Write above javascript and Press enter. you will have list of elements.

    Now e.g. If library added event on mouseenter enter following script:

    $('your selector').mouseenter() 
    

    Press enter.

    This way you can simulate mouse movement events without actual mouse. and can use actual mouse pointer to investigate thing in debugger tool.

提交回复
热议问题