Getting id of any tag when mouseover

前端 未结 3 1963
花落未央
花落未央 2020-12-16 06:28

does anyone know how i can get the id of any element when the mouse is over ?

I want to show a div (box) over the elements (tags) the mouse is over. I cannot modify

3条回答
  •  一个人的身影
    2020-12-16 06:37

    May not be what you're looking for. but if you use the web developer tools for firefox, you can select Information -> Display id and class details. This will display the ID and class information of every element on the page. Also using CSS -> View Style Information will allow you to hover over elements and have their class and id hierarchy displayed individually when you hover over them. I only offer this solution because I assume you don't want the functionality available to the user, but rather as a tool to debug the website.

提交回复
热议问题