视频不在
元素内播放

huangapple go评论70阅读模式
英文:

Video not playing inside <article> element

问题

希望有人能指导我正确的方向。
在我的页面上,当你在“<article>”元素中时,YouTube 视频不会直接播放。

这是网站链接: https://biog-biogas.com/blog/

如果我将它们从“<article>”元素中拖出来,甚至如果我点击文章,我可以正常播放视频。

我猜这只是一个CSS问题?但我就是解决不了。已经尝试了z-index,但不幸的是没有成功。

如果有人能给我一些建议,我会非常感激。

谢谢和问候;
尼科

英文:

I hope someone can point me in the right direction.
On my page, YouTube videos do not play directly on the blog page when you are in the "<article>" element.

Here is the site: https://biog-biogas.com/blog/

If I drag them out of the <article> element in the inspector, or even if I click on the article I can play the videos normally.

I guess it's just a CSS problem? But I just can't figure it out. Already played around with z-index but unfortunately without success.

I am really grateful if someone could give me a tip.

Thanks and BR;
Niko

答案1

得分: -1

你在CSS中有一个指针事件的限制,请移除它。

实际的CSS:

.post-entry-content {
  pointer-events: none;
}
英文:

You have a restriction in pointer events in the css, remove it

Actual CSS

.post-entry-content {
  pointer-events: none;
}

huangapple
  • 本文由 发表于 2023年7月13日 22:20:41
  • 转载请务必保留本文链接:https://go.coder-hub.com/76680438.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定