头闻号

马晓蕾

综合性公司

首页 > 新闻中心 > 科技常识:a标签怎么去下划线以及实现点击前和点击后不变色
科技常识:a标签怎么去下划线以及实现点击前和点击后不变色
发布时间:2024-10-03 14:27:14        浏览次数:5        返回列表

今天小编跟大家讲解下有关a标签怎么去下划线以及实现点击前和点击后不变色 ,相信小伙伴们对这个话题应该有所关注吧,小编也收集到了有关a标签怎么去下划线以及实现点击前和点击后不变色 的相关资料,希望小伙伴们看了有所帮助。

复制代码代码如下: a:link { font-size: 12px; color: #000000; text-decoration: none; } a:visited { font-size: 12px; color: #000000; text-decoration: none; } a:hover { font-size: 12px; color: #999999; text-decoration: underline; } 这样定义样式表就可以实现你的功能了 不会样式表的话 可以把下面的代码加到你的页面中<head></head>标签里: 复制代码代码如下: <style type="text/css"> <!-- a:link { font-size: 12px; color: #000000; text-decoration: none; } a:visited { font-size: 12px; color: #000000; text-decoration: none; } a:hover { font-size: 12px; color: #999999; text-decoration: underline; } --> </style>

来源:爱蒂网