• <legend id='vHjZ8'><style id='vHjZ8'><dir id='vHjZ8'><q id='vHjZ8'></q></dir></style></legend>

        <i id='vHjZ8'><tr id='vHjZ8'><dt id='vHjZ8'><q id='vHjZ8'><span id='vHjZ8'><b id='vHjZ8'><form id='vHjZ8'><ins id='vHjZ8'></ins><ul id='vHjZ8'></ul><sub id='vHjZ8'></sub></form><legend id='vHjZ8'></legend><bdo id='vHjZ8'><pre id='vHjZ8'><center id='vHjZ8'></center></pre></bdo></b><th id='vHjZ8'></th></span></q></dt></tr></i><div id='vHjZ8'><tfoot id='vHjZ8'></tfoot><dl id='vHjZ8'><fieldset id='vHjZ8'></fieldset></dl></div>
          <bdo id='vHjZ8'></bdo><ul id='vHjZ8'></ul>
        <tfoot id='vHjZ8'></tfoot>
      1. <small id='vHjZ8'></small><noframes id='vHjZ8'>

      2. CSS 禁用悬停效果

        时间:2023-11-01

            <legend id='xtjmj'><style id='xtjmj'><dir id='xtjmj'><q id='xtjmj'></q></dir></style></legend>
                <tbody id='xtjmj'></tbody>
            • <tfoot id='xtjmj'></tfoot>

                <bdo id='xtjmj'></bdo><ul id='xtjmj'></ul>

                  <small id='xtjmj'></small><noframes id='xtjmj'>

                  <i id='xtjmj'><tr id='xtjmj'><dt id='xtjmj'><q id='xtjmj'><span id='xtjmj'><b id='xtjmj'><form id='xtjmj'><ins id='xtjmj'></ins><ul id='xtjmj'></ul><sub id='xtjmj'></sub></form><legend id='xtjmj'></legend><bdo id='xtjmj'><pre id='xtjmj'><center id='xtjmj'></center></pre></bdo></b><th id='xtjmj'></th></span></q></dt></tr></i><div id='xtjmj'><tfoot id='xtjmj'></tfoot><dl id='xtjmj'><fieldset id='xtjmj'></fieldset></dl></div>
                • 本文介绍了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.

                  推荐答案

                  我有一个非常简单的解决方案.

                  I have really simple solution for this.

                  创建一个新类

                  .noHover{
                      pointer-events: none;
                  }
                  

                  并使用它来禁用它上面的任何事件.像这样使用它:

                  and use this to disable any event on it. use it like:

                  <a href='' class='btn noHover'>You cant touch ME :P</a>
                  

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

                  上一篇:在移动浏览器上禁用悬停效果 下一篇:悬停时旋转或旋转图像

                  相关文章

                  <i id='y6JNp'><tr id='y6JNp'><dt id='y6JNp'><q id='y6JNp'><span id='y6JNp'><b id='y6JNp'><form id='y6JNp'><ins id='y6JNp'></ins><ul id='y6JNp'></ul><sub id='y6JNp'></sub></form><legend id='y6JNp'></legend><bdo id='y6JNp'><pre id='y6JNp'><center id='y6JNp'></center></pre></bdo></b><th id='y6JNp'></th></span></q></dt></tr></i><div id='y6JNp'><tfoot id='y6JNp'></tfoot><dl id='y6JNp'><fieldset id='y6JNp'></fieldset></dl></div>

                    <bdo id='y6JNp'></bdo><ul id='y6JNp'></ul>

                  1. <legend id='y6JNp'><style id='y6JNp'><dir id='y6JNp'><q id='y6JNp'></q></dir></style></legend>
                    <tfoot id='y6JNp'></tfoot>
                  2. <small id='y6JNp'></small><noframes id='y6JNp'>