简体   繁体   中英

How to show “blocked” icon when you hover over an element with the mouse

A few days ago I saw a 'block' icon when I put my mouse cursor over a link, indicating that I could not click. How can I do that? I do not know the correct term to search, maybe that's why I'm not finding it. Is it a plugin? An HTML5 feature?

Unfortunately I do not remember the site that I saw this on.

Thanks!

To accomplish this, use the not-allowed pointer in CSS.

Live Example (try mousing over the text):

 a { cursor: not-allowed; } 
 <a>Not Allowed</a> 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM