请选择 进入手机版 | 继续访问电脑版

html 超链接,如何去掉默认字体颜色方法附带css处理教程

[复制链接]
查看4911 | 回复1 | 2019-1-15 09:51 | 显示全部楼层 |阅读模式
html 超链接,如何去掉默认字体颜色方法教程
CSS教程:
  1. <a href="#"  style="color:red;text-decoration:none;" >测试超链接</a>
复制代码

  1. <style type="text/css">

  2. a:link { text-decoration: none;color: blue}

  3. a:active { text-decoration:blink}

  4. a:hover { text-decoration:underline;color: red}

  5. a:visited { text-decoration: none;color: green}

  6. </style>
复制代码


none参数表示超链接文字不显示下划线;如下列代码所示:
  1. <style type="text/css">
  2. A { text-decoration: none}
  3. </style>
复制代码

将代码插入在<head></head>之间,<title>之前即可实现。


老虎 | 2019-8-20 05:20 | 显示全部楼层
技术学习教程网,支持一下。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

UID
1
贡献
387
丢币
38902
主题
4607
回帖
116
注册时间
2018-9-25
最后登录
2024-3-24