How to change the link color in a specific class f

2020-01-30 08:32发布

In my Page the following CSS is set:

a:link {
    color: #0094DE;
    text-decoration: none;


}
a:visited {
        text-decoration: none;
color: #0094DE;

}
a:hover {
text-decoration: underline;
color: #DD127B;

}

I want to Change the Link color inside a div which has a class assigned to it. I tried the following :

register:link{color:#FFFFFF;
        }

Where register is the name of the div in which i want to change the link color. How can i do that? Also how to change the color for hover link over the same div?

7条回答
Root(大扎)
2楼-- · 2020-01-30 09:13
.register a:link{
    color:#FFFFFF;
}
查看更多
登录 后发表回答