Open debug601 opened 3 years ago
师傅怎么解决的我也遇到了这个问题
废了几个小时时间终于找到原因了.
pre[class*="language-"].line-numbers>code {
position: sticky; /* 原来是relative */
white-space: inherit;
}
按照这样修改后即可正常显示
请问这是在哪个文件里,我也遇到这个问题,但是在matery.css中找不到这些代码
解决方案:查看 #721 和 #637 的两个 commit 内容 按照这两个解决方案可以显示行号,但是行号不是很对齐,有一点点偏差
请问这是在哪个文件里,我也遇到这个问题,但是在matery.css中找不到这些代码
themes\hexo-theme-matery\source\libs\prism\prism.min.css
pre[class*=language-].line-numbers>code{position:relative;white-space:inherit}
来个表哥看看, My Blog is k0xx11.github.io