<bdo id='h2K4i'></bdo><ul id='h2K4i'></ul>
    <tfoot id='h2K4i'></tfoot>

    <legend id='h2K4i'><style id='h2K4i'><dir id='h2K4i'><q id='h2K4i'></q></dir></style></legend>
    1. <small id='h2K4i'></small><noframes id='h2K4i'>

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

      1. 答:悬停不工作

        时间:2023-11-30
          <tbody id='VVXyA'></tbody>

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

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

                  本文介绍了答:悬停不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  HTML

                   <table width="100%">
                  <tr>
                      <td width="90%"></td>
                      <td><a href="#" id="logout"><strong>Logout</strong></a></td>
                   </tr>
                  </table>
                  

                  CSS

                  @charset "utf-8";
                  /* CSS Document */
                  
                  #logout {
                  color:#BBB;
                  }
                  
                  a:hover {
                  color:#FFF;
                  }
                  

                  虽然注销的颜色似乎是 css 中给出的颜色,但当我将鼠标放在链接 (to white) 上时颜色不会改变.是什么原因?

                  Though the color of logout appears to be what is given in the css , the color doesn't change when i place my mouse over the link (to white) . What is the reason ?

                  我必须说还有其他 css 文件,当鼠标放在它们上面时,它们往往会改变链接的颜色并且它们工作正常.

                  I must tell there are other css files that tend to change the color of the link when the mouse is placed over them and they work fine.

                  推荐答案

                  id 选择器 (#logout) 比类型选择器 (a) 加一个伪类 (:hover),因此您的第一个规则集将始终 赢得级联.

                  An id selector (#logout) is more specific then a type selector (a) plus a pseudo-class (:hover), so your first ruleset will always win the cascade.

                  使用 #logout:hover 代替.

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

                  上一篇:如何让 div 在悬停时消失而不会在鼠标移动时闪烁? 下一篇:为什么负 z-index 会消除非静态定位元素的悬停功能?

                  相关文章

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

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

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