
2条回答 默认 最新
Sporg 2021-11-25 11:48关注设置a标签的下边框出颜色就可以
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <style> a{ text-decoration: none; /* //去掉默认下划线 */ } a:hover{ border-bottom: 1px solid #cecece; } </style> </head> <body> <a href="#">下划线</a> </body> </html>本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报