Don't be surprised if you see some kind of underlined link in the picture. Because it’s actually very simple and you can do it, too. Check out the actual effect here http://5key.net/demo/hyperlink-underline ![]() First, let's talk about how to get this colored underline. Maybe you have guessed it, a gradient background image. That’s right! It’s the picture below. ![]() Take a look at the CSS below. I think you should have understood the effect of the entire link change. If it's not too clear. Let's first understand the concept of sliding door body { font-size:14px; font-family: Helvetica, sans-serif; padding:10px; margin:0px; } h1{margin:0; padding:0; font-size:16px; } p{padding:20px 0 0 0;} 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; } |
<<: How to use shell to perform batch operations on multiple servers
The implementation principle of Vue2.0/3.0 two-wa...
When we use Vue for development, we may encounter...
Table of contents 1. What is a subquery? 2. Self-...
This article shares the installation tutorial of ...
A very common scenario in react projects: const [...
Preface Under Linux, compilation and linking requ...
This article example shares the specific code of ...
Effect picture (the border color is too light, pu...
When the system encounters various IO bottlenecks...
Software Version Windows: Windows 10 MySQL: mysql...
The emergence of jQuery has greatly improved our ...
Table of contents 1. MySQL time type 2. Check the...
Preface This article introduces a tutorial on how...
Table of contents 1. Demo Project 1.1 Interface P...
Installation, configuration, startup, login and c...