mouse hover on anchor tag does not display pointer

2019-07-05 02:45发布

问题:

I have a code in my razor view as below. The pointer cursor is not displaying while mouse hover on any of the anchor tag. The same code works fine on IE 9. This issue is observed on Chrome browser. Any guess why the below code failed on Chrome Version 25.0.1364.172 m?

 <ul id="menu" class="menu">
                               <li><a href="#" style="cursor: pointer;">Top 10 Headlines</a>
                               </li>
                                <li><a href="#">Related Content</a>
                               </li>
                           </ul>

回答1:

Do you have Developer tools open? For some reason cursor will not show as pointer while this tool is open. Close it and try again.



回答2:

The issue is chrome developer tools as stated by LetsGoRangers

Fix: Press F12 Click on the gear icon (lower right in version 27) Click override (left column) make sure "emulate touch events" is unchecked.

The cursor should appear even with Developer Tools open now.

There have been issues where it will check itself after restarting chrome. You may need to reinstall chrome to fix this.