当前位置: 代码迷 >> 综合 >> Typora -> 设置:附加修改的方法
  详细解决方案

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

热度:18   发布时间:2023-12-16 09:29:57.0

文章目录

    • 蓝奏云下载:typora-9.55,css
    • 1.css设置效果
    • 2.标题跳转
      • 2.1标题跳转
      • 2.2任何位置跳转
    • 3.红色下划线
    • 4.教你怎么改css

蓝奏云下载: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.重启完成