【发布时间】:2014-05-08 13:29:10
【问题描述】:
我有一个使用大量背景图片的 Reveal.js 幻灯片:
<section data-background="latimes.png">
<small class="caption">[Some Text](http://a.link.com/whatever)</small>
<aside class="notes">some notes</aside>
</section>
我想在每张幻灯片的左下角为每张图片添加一个标题/链接。
我尝试设置自定义类
.reveal .caption a {
background: #FFF;
color: #666;
padding: 10px;
border: 1px dashed #999;
}
.reveal .caption {
postion: absolute;
bottom: 0px;
left: 50px;
}
但它似乎对布局没有任何影响。元素检查器似乎不能很好地与 Reveal.js 一起工作,这使得这很难排除故障。有没有一种好方法可以在reveal.js中将一块文本强制到屏幕的一角?
【问题讨论】:
-
我可以在
.reveal .caption上设置边距——margin-top: 700px; margin-right: 1000px;或多或少在我的屏幕上起作用。但这似乎坏了。