简体   繁体   English

如何强制Showoff不在.content div中添加边距顶部

[英]How to force Showoff to not add a margin-top to the .content div

Scott Chacon's Showoff gem is a great alternative to Powerpoint/Keynote... but the fact that it always centers content vertically is annoying. 斯科特·查孔(Scott Chacon)的Showoff宝石是Powerpoint / Keynote的绝佳替代品,但是它始终将内容垂直居中的事实令人讨厌。 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? 有没有办法强制Showoff不向.content div添加margin-top值? It is done at the element level, so you aren't able to override with css file. 它是在元素级别完成的,因此您无法使用css文件覆盖。

应用此提交中的补丁并将固定顶部添加到相关幻灯片是一个合适的解决方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM