【发布时间】:2017-10-11 22:24:55
【问题描述】:
使用 Galleria.io API 创建幻灯片。 我的 HTML 页面中 Galleria 的 DIV 标记如下所示:
<div class="content">
<div id="galleria">
<!-- I have used Javascript to input values in this DIV tag -->
</div>
<div id="full" style="float: right">
<!-- DIV tag for fullscreen and auto slideshow play-->
<button>full screen</button>
<button>play slideshow</button>
</div>
</div>
我使用了Galleria.io下载中提供的经典主题,并且有下面的脚本来调用DIV标签中的内容(“id = galleria”)。
<script>
$(function () {
Galleria.run('#galleria');
});
</script>
我参考了 Galleria 的官方文档以启用 fullscreen 和 auto slideshow。
但是这些文档只提供了方法名称,并没有提供实现这些方法的示例。有人可以指导如何在脚本标签中实现这些方法吗?
另外,我已经讨论过auto-resize in galleria 并尝试实施但遇到问题。
【问题讨论】:
标签: javascript slideshow galleria