我正在使用 GitPitch 创建代码幻灯片:https://github.com/gitpitch/gitpitch/wiki/Code-Slides
对于我的代码幻灯片,我希望文本尽可能大。
我看到 GitPitch 服务使用了 Reveal.js。
https://github.com/gitpitch/gitpitch/wiki/Slideshow-Custom-CSS
在 Reveal.js CSS 类中,是否有推荐的方法来拉伸(stretch)/扩展/放大代码示例的字体?
最佳答案
以下 CSS 似乎在全屏模式下运行良好。
.reveal pre code {
font-size: 1.3em;
line-height: 1.2;
}
.reveal pre {
width: 120%;
margin-left: -10%;
}
关于reveal.js - 在 GitPitch 演示文稿中,如何增加代码块的字体大小?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41454902/