【问题标题】:How to force Showoff to not add a margin-top to the .content div如何强制 Showoff 不向 .content div 添加 margin-top
【发布时间】:2011-11-02 04:45:36
【问题描述】:

Scott Chacon 的 Showoff gem 是 Powerpoint/Keynote 的绝佳替代品……但它总是将内容垂直居中的事实令人讨厌。有时您希望将内容强制到幻灯片的顶部。此外,似乎存在一个错误,即在计算 margin-top 时不考虑带有图像的增量内容,这导致增量内容最终脱离幻灯片的底部。

有没有办法强制 Showoff 不向 .content div 添加 margin-top 值?它是在元素级别完成的,因此您无法使用 css 文件覆盖。

【问题讨论】:

    标签: javascript css ruby gem presentation


    【解决方案1】:

    应用来自this commit 的补丁并为相关幻灯片添加固定顶部是一种合适的解决方法。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-09-22
      • 2018-11-18
      • 2014-07-27
      • 2011-02-10
      • 1970-01-01
      • 1970-01-01
      • 2011-02-22
      • 1970-01-01
      相关资源
      最近更新 更多