You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何去除Github中.md文件里<a>标签的烦人的下划线?

解决GitHub Markdown中链接下划线问题的方法

这些蓝色下划线是GitHub默认给<a>标签添加的样式,可通过以下几种方式去除:

方法1:给<a>标签添加内联样式

直接在每个<a>标签中加入style="text-decoration: none;",修改后的代码示例:

<!-- Social media section -->
> 🚀 You can take a look to know more about me!
> 
<p align="center">
  <a href="https://github.com/Joncarre" style="text-decoration: none;">
    <img src="https://raw.githubusercontent.com/Joncarre/Joncarre/main/logo/web.svg" width="32"/>
  </a>
&nbsp;&nbsp;&nbsp;
  <a href="https://www.linkedin.com/in/jonathancarrero" style="text-decoration: none;">
    <img src="https://raw.githubusercontent.com/Joncarre/Joncarre/main/logo/linkedin.svg" width="32"/>
  </a>
<!-- 其余链接同理添加style属性即可 -->
</p>

方法2:添加全局内嵌CSS块

在Markdown文件开头插入一段

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.13 11:08:19