How to use pictures to realize personalized underlining of hyperlinks in css
This article is about how to use pictures to achieve personalized underlining of hyperlinks in css. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
First of all, let's talk about how this colored underline is made. As you may have guessed, a gradual background picture. That's right! This is the picture below.
Take a look at the css below. I think you already understand the changing effect of the whole link.
If it's not too clear. First, let's take a look at the concept of sliding door body {
Font-size:14px;font-family: Helvetica, sans-serif;padding:10px;margin:0px;} H2 {margin:0; padding:0; font-size:16px;} p {padding:20px 000;} a {* padding-bottom:1px;text-decoration:none;} a:link {color:#06F;background: url (1.gif); background-repeat: repeat-x;background-position: 0 16px;} a:visited {color:#06f;background-image: url (1.gif); background-repeat: repeat-x Background-position: 0 16px;} a:hover {color:#039;background:url (1.gif) repeat-x 0 bottom;} Thank you for reading! On "how to use pictures in css to achieve personalized underlining of hyperlinks" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, you can share it out for more people to see it!