【发布时间】:2017-07-21 20:50:25
【问题描述】:
我在 Firefox 中遇到了一个问题,特别是我的元素在播放之前,在海报属性图像上覆盖了一个亮灰色的播放按钮:
相对于 Chrome 和 IE 中播放器的显示方式:
我的 HTML 是基本的:
main {
width: 75%;
height: 700px;
padding-right: 1.9%;
float: left;
position: relative;
}
video {
margin-left: 9.2%;
margin-top: 11%;
border: 4px solid black;
object-fit: initial;
}
/*Causes the poster to not leave gaps between itself and the border*/
<video id="video" width="768" height="432" poster="img/main/intro1poster.png" controls>
<source src="media/videos/intro1.mp4" type="video/mp4">
<p>Your browser doesn't support HTML5 video or Flash.
A low quality version of the video can be found here: <br/>
<a href="https://www.youtube.com/watch?v=BDw7xpzH-68">Dev Update #1</a></p>
</video>
两年前,我可以在其他 1 个线程 (How to remove the gray overlay on top of the Video in firefox using the new HTML5 <video>?) 中提出这个问题,但从未提出任何解决方案。我愿意在解决方案中使用 javascript,但我不想完全重新设计控件。
【问题讨论】:
标签: css html html5-video