Use CSS to achieve the dotted underline effect of links_CSS/HTML

WBOY
Release: 2016-05-16 12:11:40
Original
2100 people have browsed it

Modify your style sheet and look for the paragraph below (usually at the beginning)
a {
color:#3399FF;
font-weight:Normal; /*The font effect can be changed to bold* /
text-decoration:none; /*Underline effect: no underline*/
}

a:hover {
color:#4499EE;
text-decoration:none; /*Underline effect: no underline*/
border-bottom: 1px #0099CC dotted /*Add a box with only the bottom border as dotted line*/
}

  a{} controls the effect of the connection a:hover{} controls the effect of moving the mouse up.
Some CSS definition dotted line example code


[Ctrl+A Select all Note: If you need to introduce external Js, you need to refresh to execute ]

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!