如何强制 Showoff 不向 .content div 添加 margin-top
Scott Chacon 的 Showoff gem 是 Powerpoint/Keynote 的绝佳替代品……但它总是垂直居中内容这一事实很烦人。有时您想将内容强制放在幻灯片的顶部。此外,似乎存在一个错误,即在计算边距顶部时不考虑图像的增量内容,这会导致增量内容最终超出幻灯片的底部。
有没有办法强制 Showoff 不向 .content div 添加 margin-top 值?它是在元素级别完成的,因此您无法使用 css 文件覆盖。
Scott Chacon's Showoff gem is a great alternative to Powerpoint/Keynote... but the fact that it always centers content vertically is annoying. Sometimes you want to force content to the top of the slide. Additionally, there seems to be a bug in that incremental content with images isn't considered when calculating margin-top, which results in incremental content ending up off the bottom of the slide.
Is there a way to force Showoff to not add a margin-top value to the .content div? It is done at the element level, so you aren't able to override with css file.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
应用此提交中的补丁以及将固定顶部添加到相关幻灯片是一个合适的选择解决方法。
Applying the patch from this commit along with adding fixed-top to the relevant slides was a suitable workaround.