html - 如何将 Playsinline 属性添加到 Elementor 视频小部件?
问题描述
我正在尝试使用 Wordpress 上的 Elementor Page 构建器将 Playsinline HTML 属性添加到视频中。我能够使用纯 HTML 完成此操作,但我不知道如何格式化 Elementor 自定义属性中的键|值对,以使视频小部件在移动设备上在线播放。
这是我用来创建内联视频的代码。
<figure class="wp-block-video"><video controls src="https://staging1.ingoodhealth.co/wp-content/uploads/M1.mp4" Playsinline></video></figure>
解决方案
我将此添加到我的视频中并且效果很好:playsinline="1"
推荐阅读
- android - Worker.setForegroundAsync 如何在幕后工作?
- java - AbstractNCSARequestLog 不适用于 log4j
- javascript - let arrayName = [...this.A, this.B] 和 let arrayName = [...this.A] arrayName.push(this.B) 的区别
- php - 多次单击提交按钮,它在 Codeigniter 中多次提交相同的表单
- javascript - 如何使用 JS 在 HTML 中查看数据“$content”
- ssl - 特雷菲克 | 单个域没有证书
- nativescript - Nativescript RadDataForm - 对于 AutoCompleteInline,propertyValidate 不会触发
- asp.net-mvc - 如何设置文本的最小长度以便显示剔除自动完成控件?
- mongodb - 如何在没有任何条件的情况下将两个集合合并为一个
- custom-element - 在连接到 WIX 事件的 WIX 代码中添加自定义库