Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to test CSS :hover in IE Developer tools?

In Chromes Dev Tools, you can select an element and enable the hover state. Is there a way that this can be done in Internet Explorers Dev Tools?

like image 803
MattyP Avatar asked Nov 26 '12 21:11

MattyP


People also ask

How do I add hover in developer tools?

In the Elements panel click over Toggle Element state button and select :hover . In the Scripts panel go to Event Listeners Breakpoints in the right bottom section and select Mouse -> mouseup . Now inspect the Menu and select the box you want.

Can I use Hover CSS?

The :hover selector is used to select elements when you mouse over them. Tip: The :hover selector can be used on all elements, not only on links. Tip: Use the :link selector to style links to unvisited pages, the :visited selector to style links to visited pages, and the :active selector to style the active link.

Why hover property is not working in CSS?

Some problems arise on small touch screen devices that do not support hover. Also, hover will not work if you use the wrong CSS format. Note that if you do not get the specificity right, the hover style will not work.


1 Answers

I am not sure what version of IE you were using when you asked this question.

Just for everyone's information, I am able to view the hover style through the HTML tab by using the following sequence of steps in IE 9:

  1. Open the developer tool
  2. Hover over the element you want to view its hover CSS while leaving the developer window focused.
  3. Press F5 while your mouse is still over the element
  4. Ctrl + B and click on the element

You can now view the hover CSS.

Edit (Jan 2015):

In IE 11, you click the large blue "a:" icon that appears in the top right of the Styles pane of the DOM Explorer, and then check the "Hover" checkbox.

like image 101
Leo Lei Avatar answered Sep 20 '22 07:09

Leo Lei