样式文件位置:
- anaconda环境下:\Anaconda3\Lib\site-packages\notebook\static\components\codemirror\lib
- 虚拟环境下:\Anaconda3\envs\环境名字\Lib\site-packages\notebook\static\components\codemirror\lib
更改样式块:
.CodeMirror pre.CodeMirror-line,
.CodeMirror pre.CodeMirror-line-like {
/* Reset some styles that the rest of the page might have set */
-moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
border-width: 0;
background: transparent;
font-family: Deja Vu Sans Mono;
font-size: 20px;
margin: 0;
white-space: pre;
word-wrap: normal;
line-height: 120%;
color: inherit;
z-index: 2;
position: relative;
overflow: visible;
-webkit-tap-highlight-color: transparent;
-webkit-font-variant-ligatures: contextual;
font-variant-ligatures: contextual;
}
-
font-family:字体样式
最适合程序员编程的10款字体 -
font-size:字体大小(使用xp或者%)
-
line-height:行高