清除HTML的超链接样式,Markdown导出HTML,删除超链接下划线和字体样式

使用Markdown生成的HTML含有超链接的下划线,如下图

202db75f62c80ebefb98651e6cb3f665.png

将Markdown导出的HTML文件放置在Blog文章中时,Markdown文件的超链接下划线样式会影响整个页面的超链接下划线样式,如下图

e4f7e5628c5a8da0707cc2c34966f7dd.png

修改方法是,将Markdown导出的HTML页面中的 a 位置的 text-decoration: underline 改为 text-decoration: none 即可。@media screen and (min-width: 64em) {

.h1, h1 { font-size: 4.498rem; }

.h2, h2 { font-size: 2.29rem; }

.h3, h3 { font-size: 1.9rem; }

.h4, h4 { font-size: 1.591rem; }

#write > h4.md-focus::before { top: 4px; }

}

a { color: rgb(70, 63, 92); text-decoration: underline; }

#write { padding-top: 2rem; }

改为@media screen and (min-width: 64em) {

.h1, h1 { font-size: 4.498rem; }

.h2, h2 { font-size: 2.29rem; }

.h3, h3 { font-size: 1.9rem; }

.h4, h4 { font-size: 1.591rem; }

#write > h4.md-focus::before { top: 4px; }

}

a { color: rgb(70, 63, 92); text-decoration: none; }

#write { padding-top: 2rem; }

另外,删除下行,以避免影响页面字体html { font-size: 14px; background-color: var(--bg-color); color: var(--text-color); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }

body { margin: 0px; padding: 0px; height: auto; bottom: 0px; top: 0px; left: 0px; right: 0px; font-size: 1rem; line-height: 1.42857; overflow-x: hidden; background: inherit; tab-size: 4; }

在使用github的Markdown主题时,删除一级标题设置(下划线)h1 { padding-bottom: 0.3em; font-size: 2.25em; line-height: 1.2; border-bottom: 1px solid rgb(238, 238, 238); }

删除字体

Markdown导出HTML,删除超链接下划线
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值