CSS禁用悬停效果 [英] CSS disable hover effect

查看:1595
本文介绍了CSS禁用悬停效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在整个DOM中的特定按钮(而不是所有按钮)上停用鼠标悬停。请让我知道如何使用CSS类实现它。

I need to disable the mouse hover on a particular button(not on all buttons) in the entire DOM. Please let me know how to achieve it using a CSS class.

当我的按钮被禁用时,我使用下面的CSS类。现在我想使用相同的类来移除悬停效果。

i am using the below CSS class when my button is disabled. now i want to remove the hover effect using the same class.

.buttonDisabled
 {
 Cursor:text !important; Text-Decoration: None !important; 
 } 

上述类将会处理鼠标移除手势和文本下划线结束。现在我想删除悬停效果。请通知我。

The above class will take care of removing the hand sign and text underline on mouse over . Now i want to remove hover effect also. Please let me know.

推荐答案

添加以下内容以在停用按钮上添加悬停效果

add following to add hover effect on disabled button

   .buttonDisabled:hover
     {
       /*your code goes here*/
     }

这篇关于CSS禁用悬停效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆