<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. 答:悬停不工作

        a:hover not working(答:悬停不工作)
          <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 代替.

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

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Move link image 5px up on hover(悬停时将链接图像向上移动 5px)
                  How do I inspect CSS pseudo classes with firebug?(如何使用 firebug 检查 CSS 伪类?)
                  Why doesn#39;t CSS hover work on table rows when the cells inside the rows have class names?(当行内的单元格具有类名时,为什么 CSS 悬停在表格行上不起作用?)
                  Hover image - display div over it(悬停图像 - 在其上显示 div)
                  How to apply a CSS class on hover to dynamically generated submit buttons?(如何在悬停时将 CSS 类应用于动态生成的提交按钮?)
                  Differences between CSS3 :hover and :focus?(CSS3 :hover 和 :focus 的区别?)
                • <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'>

                          <tbody id='o72Ij'></tbody>

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