• <bdo id='5CvT9'></bdo><ul id='5CvT9'></ul>

      <tfoot id='5CvT9'></tfoot>

      <small id='5CvT9'></small><noframes id='5CvT9'>

    1. <legend id='5CvT9'><style id='5CvT9'><dir id='5CvT9'><q id='5CvT9'></q></dir></style></legend>

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

        HTML/CSS - 悬停链接颜色

        HTML / CSS - Hover Link Color(HTML/CSS - 悬停链接颜色)
        • <i id='vsY7Y'><tr id='vsY7Y'><dt id='vsY7Y'><q id='vsY7Y'><span id='vsY7Y'><b id='vsY7Y'><form id='vsY7Y'><ins id='vsY7Y'></ins><ul id='vsY7Y'></ul><sub id='vsY7Y'></sub></form><legend id='vsY7Y'></legend><bdo id='vsY7Y'><pre id='vsY7Y'><center id='vsY7Y'></center></pre></bdo></b><th id='vsY7Y'></th></span></q></dt></tr></i><div id='vsY7Y'><tfoot id='vsY7Y'></tfoot><dl id='vsY7Y'><fieldset id='vsY7Y'></fieldset></dl></div>

              <tbody id='vsY7Y'></tbody>

            1. <legend id='vsY7Y'><style id='vsY7Y'><dir id='vsY7Y'><q id='vsY7Y'></q></dir></style></legend><tfoot id='vsY7Y'></tfoot>

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

                  <bdo id='vsY7Y'></bdo><ul id='vsY7Y'></ul>
                  本文介绍了HTML/CSS - 悬停链接颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我在我的 CSS 中编写了这段代码;这会使我网站上的所有链接变成白色,当它们悬停在上面时,它们会变成灰色.

                  I have this code written in my CSS; which makes all links on my site white, and when they're hovered on, they turn gray.

                  a:link {color: #FFFFFF}
                  a:active {color: #383838}
                  a:visited {color: #FFFFFF}
                  a:hover {color: #383838}
                  

                  这是我网站的一部分,其中的链接是白色的,当鼠标悬停在上面时会变成灰色.我在网站上有四个不同的链接,用|"分隔.我试图让每个链接都保持白色,但只要将它们悬停在...上,就会更改为不同的 HTML 颜色……以匹配我们的徽标.(下面附有我的链接的代码的 HTML 部分).

                  Here's the portion of my site which has links that are white and turn gray when hovered on. I have four different links on the site separated by a "|" . I am trying to make each link STAY white, but change to a different HTML color whenever they're hovered on….to match our logo. (HTML section of the code that has my links are attached below).

                  第 1 页 | 第 2 页 | 第 3 页 | 第 4 页

                  如果有人可以帮助我找出一种非常简单的方法来制作每个链接(第 1 页、第 2 页、第 3 页和第 4 页),当它们悬停在它们上时,每个链接都会更改不同的 HTML 颜色,我会很高兴的.基本上,一条规则或其他内容表明,当鼠标悬停时,名为 Page 1 的链接需要被着色为 #C7C025……而名为 Page 2 的链接在悬停时需要被着色为 #950285,依此类推……

                  I would love if someone could help me figure out a very easy, simple way to make each link, Page 1, Page 2, Page 3 and Page 4, each change different HTML colors when they're hovered on. Basically, a rule or something that says the link named Page 1 needs to be colored #C7C025 when hovered on…and the link named Page 2 needs to be colored #950285 when hovered on and so forth…

                  非常感谢您!

                  推荐答案

                  给你的链接一个 ID:

                  Give your links an ID:

                  <a id="page1" href="http://www.my-website09090909.com/page1">Page 1</a>
                  <a id="page2" href="http://www.my-website09090909.com/page1">Page 2</a>
                  <!-- .... -->
                  

                  然后使用这个css:

                  #page1:hover { color: red; }
                  #page2:hover { color: blue; }
                  /* ... */
                  

                  这篇关于HTML/CSS - 悬停链接颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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='6PTzB'><style id='6PTzB'><dir id='6PTzB'><q id='6PTzB'></q></dir></style></legend>
                    • <bdo id='6PTzB'></bdo><ul id='6PTzB'></ul>

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

                            <tfoot id='6PTzB'></tfoot>

                            <small id='6PTzB'></small><noframes id='6PTzB'>