Typora -> 设置:附加修改的方法

蓝奏云下载:typora-9.55,css

https://rod.lanzous.com/b0dklalqh:密码666

1.css设置效果

在这里插入图片描述

打开偏好设置

在这里插入图片描述

新建一个base.user.css自定义css

在这里插入图片描述

css代码:我的配置 => 想偷懒的直接用我这个也可以

/* ä»£ç è®¾ç½® */
code {
    color: #000;
    background-color: #8ef99a;
    border-radius: 2px
}

/* Spring Doc selected text*/
::selection {
    background-color: #D1FE78
}

.cm-s-inner .CodeMirror-cursor {
    border-left: solid rgb(96, 255, 96) !important;
}


/** 引用设置  */
blockquote {
    border-left: 4px solid #3cca17;
    height: 38px;
    font-size: 22px;
    /* text-align:left; */
    padding: 0px 15px;
    color: #45bf26;
}
/** 跳转颜色  */
a {
    color: #ab90fd;
}


/** æ ‡é¢˜è®¾ç½®,没有更好的了,勉强用 */
#write, .sidebar-content,.md-toc-content{
    counter-reset: h2
}
 
#write h1, .outline-h1, .md-toc-item.md-toc-h1 {
    counter-reset: h2
}
 
#write h2, .outline-h2, .md-toc-item.md-toc-h2 {
    counter-reset: h3
}
 
#write h3, .outline-h3, .md-toc-item.md-toc-h3 {
    counter-reset: h4
}
 
#write h4, .outline-h4, .md-toc-item.md-toc-h4 {
    counter-reset: h5
}
 
#write h5, .outline-h5, .md-toc-item.md-toc-h5 {
    counter-reset: h6
}
 
/** put counter result into headings */
/* ä¸€çº§æ ‡é¢˜ä¸å±•ç¤º */
#write h1:before,
.outline-h1>.outline-item>.outline-label:before,
.md-toc-item.md-toc-h1>.md-toc-inner:before {
    /* counter-increment: h1;
    content: counter(h1) ". " */
}
 
/* äºŒçº§æ ‡é¢˜ */
#write h2:before,
.outline-h2>.outline-item>.outline-label:before,
.md-toc-item.md-toc-h2>.md-toc-inner:before {
    counter-increment: h2;
    content: counter(h2) ".   ";
    /* content: counter(h2) ". " */
}
 
/* ä¸‰çº§æ ‡é¢˜ */
#write h3:before,
h3.md-focus.md-heading:before, /** override the default style for focused headings */
.outline-h3>.outline-item>.outline-label:before,
.md-toc-item.md-toc-h3>.md-toc-inner:before {
    text-decoration: none;
    counter-increment: h3;
    /* content: counter(h1) "." counter(h2) "." counter(h3) ". " */
    /* content: counter(h2) "." counter(h3) ". " */
    content: counter(h2) "." counter(h3) "   "
}
 
/* å››çº§æ ‡é¢˜ */
#write h4:before,
h4.md-focus.md-heading:before,
.outline-h4>.outline-item>.outline-label:before,
.md-toc-item.md-toc-h4>.md-toc-inner:before {
    text-decoration: none;
    counter-increment: h4;
    /* content: counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) ". " */
    /* content: counter(h2) "." counter(h3) "." counter(h4) ". " */
    content: counter(h2) "." counter(h3) "." counter(h4) "   "
}
 
/* äº”çº§æ ‡é¢˜ */
#write h5:before,
h5.md-focus.md-heading:before,
.outline-h5>.outline-item>.outline-label:before,
.md-toc-item.md-toc-h5>.md-toc-inner:before {
    text-decoration: none;
    counter-increment: h5;
    /* content: counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) ". " */
    /* content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) ". " */
    content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "   "
}
 
/* å…­çº§æ ‡é¢˜ */
#write h6:before,
h6.md-focus.md-heading:before,
.outline-h6>.outline-item>.outline-label:before,
.md-toc-item.md-toc-h6>.md-toc-inner:before {
    text-decoration: none;
    counter-increment: h6;
    /* content: counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "." counter(h6) ". " */
    /* content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "." counter(h6) ". " */
    content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "." counter(h6) "   "
}
 
/** override the default style for focused headings */
#write>h3.md-focus:before,
#write>h4.md-focus:before,
#write>h5.md-focus:before,
#write>h6.md-focus:before,
h3.md-focus:before,
h4.md-focus:before,
h5.md-focus:before,
h6.md-focus:before {
    color: inherit;
    border: inherit;
    border-radius: inherit;
    position: inherit;
    left:initial;
    float: none;
    top:initial;
    font-size: inherit;
    padding-left: inherit;
    padding-right: inherit;
    vertical-align: inherit;
    font-weight: inherit;
    line-height: inherit;
}
 
/* 设置行距 */
 
 
/* è®¾ç½®ä¸€çº§æ ‡é¢˜è¡Œè· */
#write h1 {
    margin-bottom:50px;
    margin-top:50px;
}
 
#write h2 {
    margin-bottom:30px;
    margin-top:50px;
}
 
#write h3 {
    margin-bottom:30px;
    margin-top:30px;
}
 
#write h4 {
    margin-bottom:30px;
    margin-top:30px;
}
 
#write h5 {
    margin-bottom:30px;
    margin-top:30px;
}



2.标题跳转

2.1标题跳转

格式 [说明](#标题名)

[奥利给](#标题名)--ctrl+鼠标左键跳转
在这里插入图片描述

2.2任何位置跳转

  • 要设置标签<a></a>
  • 不要忘了闭合标签,有时候不闭合用不了

格式 [说明](#name的值)

<a name="随便"></a>
[跳转到随便](#随便)
在这里插入图片描述

3.红色下划线

在这里插入图片描述

4.教你怎么改css

1.打开typora的开发者工具
在这里插入图片描述
2.选择控件
在这里插入图片描述
3.移动到要修改的位置
在这里插入图片描述
4.点击后跳到对应的css
在这里插入图片描述
5.改颜色:点击颜色那块
在这里插入图片描述
6.查看css的位置
在这里插入图片描述
7.点击跳转
在这里插入图片描述
8.鼠标移动到文件上面查看路径
在这里插入图片描述
9.复制全部
在这里插入图片描述
10.找到路径的css:替换代码
在这里插入图片描述
11.重启完成

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值