我尝试在中添加视频。这适用于Firefox浏览器,但不适用于Chrome浏览器。我的代码如下:
<embed onclick="VideoStart"; style=" position: absolute; top: 260px; margin-left: auto;margin-right: auto;left: 0;right: 0;text-align: center; width: 1100px; height: 618.75px; z-index: 3;"
width="100%" height="100%"
allow="autoplay; encrypted-media; picture-in-picture"
allowfullscreen
id="embedyt"
src="https://www.youtube.com/embed/ZX9kOwtzyqI"
>
有人可以告诉我我需要做什么才能使其在Chrome浏览器中正常运行吗?但我不想使用iframe,因为您无法使用它检查onclick。还是也可以使用iframe检查onclick?我希望得到一个答案。