wordpress - 如何在轮播项目之间切换
问题描述
有什么方法可以使用同一页面上的按钮或超链接在轮播项目之间切换。我正在研究 wordpress,但无法找到有关此问题的任何特定案例。如果可以,请提供解决方案或分享一个链接,这将有所帮助。
解决方案
您应该在 html 中添加按钮控件。
<!-- Controls -->
<a class="left carousel-control" href="#carousel_slider_id" role="button" data-slide="prev">
<span class="fa fa-angle-left" aria-hidden="true"></span>
</a>
<a class="right carousel-control" href="#carousel_slider_id" role="button" data-slide="next">
<span class="fa fa-angle-right" aria-hidden="true"></span>
</a>
确保使用您的轮播滑块 ID 更新“carousel_slider_id”。
推荐阅读
- postgresql - Postgres 中的数组字段与字符变化性能
- package - 如何使用“添加”命令更改下载包的默认保存位置?
- javascript - 使用 JS 将 html 数据保存到 .xlsx
- java - 配置为监听 127.0.0.1 时无法访问在 Docker 容器中运行的 Tomcat
- compression - 压缩文件(例如 zip 或 7z)然后使用奇偶校验生成器再次扩展以进行文件恢复是否有意义?
- c# - 使用现有的 ml.net 模型进行预测,使用 json 作为模型输入
- javascript - 如何在同步等待的同一函数中使用 fetch 和 fetch 的结果
- php - 使用 PHP 从 MySQL 表中计算不同的值
- wordpress - DIVI 主题,克隆页面选项未列出可用页面。(elegentthemes.com 拒绝连接)
- java - 如何在不更改 Postman 中自动生成的主键的情况下更新记录中的值?