插件 | 轮播图管理 V2.9 |
应用作者 | 帝云网络 |
发布时间 | 2021-04-16 13:44:30 |
更新时间 | 2025-03-05 11:45:23 |
{if $t.leixing=='image'}
<a{if $t.url} href="{$t.url}" target="_blank"{/if}>
<img src="{dr_get_file($t.thumb)}" class="d-block w-100" alt="{$t.title}">
</a>
{elseif $t.leixing=='video'}
<video width="100%" height="auto" autoplay muted loop>
<source src="{dr_get_file($t.thumb)}" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
您的浏览器不支持 video 标签。
</video>
{/if
这段代码怎么使用呢?我想在轮播图部分使用视频而不是图片,可以用上面的代码来实现吗?具体要怎么做呢?
插件教程:https://www.xunruicms.com/doc/app-719.html
这样就有效了