wordpress - 如何创建一个按钮来镜像视频
问题描述
我需要创建一个按钮来镜像 vimeo 视频和另一个返回正常视图。我一直在尝试使用
transform: scaleX(-1)
但它不工作
我将不胜感激任何帮助谢谢:)
解决方案
尝试添加!important
到transform: scaleX(-1)
. 或者,
此答案可能对您有所帮助,但如果您想镜像 Vimeo 视频,那么您将不得不镜像整个 Vimeo Video iframe。
<iframe id='VimeoVideo' src="https://player.vimeo.com/video/253989945?h=c6db007fe5" width="640" height="360" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen></iframe>
<button onclick='document.getElementById("VimeoVideo").style.transform = "scaleX(-1)"'>Mirror Video</button>
<button onclick='document.getElementById("VimeoVideo").style.transform = "scaleX(1)"'>Back To Normal</button>
推荐阅读
- typescript - 使用 deno deploy 时 Deno.stat 不是函数错误
- gstreamer - gstreamer nvh265dec 由于时间戳减少而丢帧
- azure - 在 azure 数据工厂中转置数据
- python - Python 程序在不应该打印时打印 None
- ansible - 如何有条件地为 Ansible 中的游戏定义主机
- python - 根据原始值间隔拆分 datrafame 熊猫
- python - 在 ProcessBuilder 中使用“/system/bin/sh”时,android 10 和 11 中的权限被拒绝
- kubernetes - 调试 Kubernetes Custom Operator 上的 Reconcile 触发器的原因
- javascript - 哪些IOS浏览器支持访问camera和ble服务?
- sql - 通过在列中应用条件来获取数据