最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
定义链接的样式CSS
时间:2022-07-02 13:10:04 编辑:袖梨 来源:一聚教程网
CSS中用四个伪类来定义链接的样式,分别是:a:link、a:visited、a:hover和a : active,例如:
| 代码如下 | 复制代码 |
| a:link{font-weight : bold ;text-decoration : none ;color : #c00 ;} a:visited {font-weight : bold ;text-decoration : none ;color : #c30 ;} a:hover {font-weight : bold ;text-decoration : underline ;color : #f60 ;} a:active {font-weight : bold ;text-decoration : none ;color : #F90 ;} |
|
以上语句分别定义了"链接、已访问过的链接、鼠标停在上方时、点下鼠标时"的样式。注意,必须按以上顺序写,否则显示可能和你预想的不一样。记住它们的顺序是“LVHA”。
相关文章
- 251漫画-免费版网页入口 03-06
- 蛋仔派对秒玩网址直达-蛋仔派对秒玩网址最新2026 03-06
- 哔咔漫画-免费高清二次元漫画-热门连载尽在PicACG 03-06
- picacg哔咔官网最新版-picacg哔咔官网免费畅读 03-06
- 漫画岛入口在哪-漫画岛入口最新分享 03-06
- 明日方舟:终末地-云游戏畅玩入口-明日方舟:终末地-云端在线畅玩网页版入口 03-06