html - 超链接中的鼠标悬停样式

标签 html css hyperlink

我有超链接,我想在鼠标悬停时更改颜色以表明它们具有响应能力并获得丰富的用户界面,但我无法实现这一点..

这是 fiddle .. Fiddle

这是 HTML...

<div id="footer" class="footer-shadow">
<div style="margin-left:auto; margin-right:auto; width:960px; ">
    <div id="footerAboutUS" style="float:left; width:150px; position:relative;  margin-left: 10px; margin-top: 7px;">
        <label style="font-size:18px; color: #6c3f00;">About US</label>
        <br/> <a href="#" style="color: gray;text-decoration:none;font-size: 11px;">Our Delivery Model</a>

        <br/> <a href="#" style="color: gray;text-decoration:none;font-size: 11px;">Solution Area</a>

        <br/> <a href="#" style="color: gray;text-decoration:none;font-size: 11px;">List of Industries</a>

        <br/> <a href="#" style="color: gray;text-decoration:none;font-size: 11px;">IT Management</a>

        <br/> <a href="#" style="color: gray;text-decoration:none;font-size: 11px;">Lines of Business</a>

    </div>
</div>

最佳答案

尝试删除覆盖您的 css 的元素样式属性 然后使用如下标签

<style>
    a {
        color: gray;
        text-decoration: none;
        font-size: 11px;
    }

        a:hover {
            color: red;
        }
</style>

关于html - 超链接中的鼠标悬停样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23842065/

相关文章:

css - 使用 mixins 更改变量值

javascript - Javascript 警报中的链接

c# - 在 Winforms RichTextBox 控件中,如何使最后一行链接下方的空间不可单击?

javascript - 在 templates-nodejs 中链接 url

javascript - jQuery 绑定(bind)三个选择菜单隐藏/显示

jquery - 如果窗口宽度 > 1080 那么这个 - 否则,恢复到 css 并检查调整大小和页面加载

html - Fontello 不能在 mozilla firefox 上运行,并且可以在同一台计算机上的 Chrome 和 IE 上运行

javascript - 从类中选择元素 ID

javascript - 创建一个简单的 google books api

jquery 图像标题