CSS a link style effect design
CSS a link style effect design can provide the effect of the link ( a href ) in the webpage when it is used, such as moving the mouse to a link to make the link produce a different color, or marking the link that netizens have already seen as different Colors, these can all be handled by the a link style design function provided by CSS, so that the originally unchanging links have more changes. The CSS a link style design concept is like this. First, you must set the action of the link. For example, when the mouse is moved up, clicked, clicked, or already seen, after these items are designed, different display styles can be given to various actions, such as different colors, fonts, thickness... Wait, these effects are presented in the example, let’s first take a look at how to set the link action, the syntax is as follows.
Set CSS a link action judgment
//Set the link style that has not been browsed
}
a:visited {
//Set the style of the link that has been browsed
}
a:hover {
//Set the style of the mouse on the link
}
a:active {
/ /Set the link style being clicked
}
CSS a link style effect design example
a:link{
//Set the link that has not been viewed
text-decoration:none;
background-color:#ffffff;
}
a:visited {
//Set the
color of the link that has been viewed :#ffffff;
background-color:red;
}
a:hover {
//Set the link
text-decoration:underline;
background-color:#fafafa;
color:gray;
}
a:active {
//Set up Click on the link
text-decoration:none;
background-color:gray;
color:#fafafa;
}
</style>
<a href="http://www.wibibi.com">Wibibi Web Design Teaching Encyclopedia</a >
- CSS color text color
- CSS text-decoration
- CSS background-color background color
Post a Comment
0 Comments