英文:
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;
}
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论