您当前的位置:首页 > 编程技术

HTML文字加上超链接的时候,如何让文字不变色?

时间:2021-07-26 11:42:31  来源:网络    编辑:本站  点击:
示例如下:
       <a  style=" text-decoration: none; color: inherit;" href="http://www.rjc.wang">锐教程</a>      
  inherit是继承父元素的属性,它也可以用在其他地方。

 

 
 也就是说,在链接的前面加上以下代码

 
style=" text-decoration: none; color: inherit;"
注意前后各有空格。
点赞
返回首页
返回
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表
栏目导航

| 传统文化 | 武术天地 | 编程技术 | 好听音乐 | 养生中医 | 智慧人生 | 常用工具 | 写作园地 | 影视娱乐 | php专栏 | 道德经专栏 |
最新推荐
python内建函数大全(built-in functions)
python内建函数大…
点击按钮(button)打开新窗口(window)
点击按钮(button)…
帝国cms网络视频引用代码--具体操作教程
帝国cms网络视频引…
相关文章
栏目更新
栏目热门