Home > Web Front-end > HTML Tutorial > 鼠标移到元素上指针变为不可用状态_html/css_WEB-ITnose

鼠标移到元素上指针变为不可用状态_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:29:40
Original
2114 people have browsed it

鼠标移到元素上指针变为不可用状态:
鼠标的指针状态与很多种,分别代表着不同的含义,下面介绍一下如何实现当鼠标悬浮于一个元素的时候,鼠标指针会变味不可用状态,代码实例如下:

<!DOCTYPE html><html><head><meta charset=" utf-8"><meta name="author" content="http://www.softwhy.com/" /><title>蚂蚁部落</title><style type="text/css">input{  cursor:not-allowed;  width:150px;  height:18px;}</style> </head> <body> <input type="text" disabled/> </body> </html> 
Copy after login

以上代码实现了我们的要求,只要为文本框添加如下属性即可:

cursor:not-allowed
Copy after login

原文地址是:http://www.softwhy.com/forum.php?mod=viewthread&tid=13924

更多内容可以参阅:http://www.softwhy.com/divcss/

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template