感谢 Praveen Kumar 的贡献,但指向的 .css 文件只会更改默认主题的字体大小,如果我将来选择交换主题,字体大小会恢复原状。
我更改了 shCore.css 中的字体大小,因为这将适用于所有主题模板。(语法高亮 2 中的第 56 行)。
CSS提到:
.syntaxhighlighter,
.syntaxhighlighter div,
.syntaxhighlighter code,
.syntaxhighlighter table,
.syntaxhighlighter table td,
.syntaxhighlighter table tr,
.syntaxhighlighter table tbody
{
margin: 0 !important;
padding: 0 !important;
border: 0 !important;
outline: 0 !important;
background: none !important;
text-align: left !important;
float: none !important;
vertical-align: baseline !important;
position: static !important;
left: auto !important;
top: auto !important;
right: auto !important;
bottom: auto !important;
height: auto !important;
width: auto !important;
line-height: 1.1em !important;
font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
font-weight: normal !important;
font-style: normal !important;
font-size: 0.98em !important; <- This! (Reduced from 1em, surprisingly this was enough)
/*min-height: inherit !important; *//* For IE8, FF & WebKit */
/*min-height: auto !important;*/ /* For IE7 */
direction: ltr !important;
}