【发布时间】:2017-03-18 20:30:05
【问题描述】:
由于某种原因,在 Chrome 上,我的视频容器元素底部出现了一个白色底部边框。
<video id="cover" src="video.mp4" autoplay="" loop=""></video>
有谁知道如何解决这个问题?
这是video 元素的计算样式。
background-color:rgb(0, 0, 0);
border-bottom-color:rgb(0, 0, 0);
border-bottom-style:none;
border-bottom-width:0px;
border-image-outset:0px;
border-image-repeat:stretch;
border-image-slice:100%;
border-image-source:none;
border-image-width:1;
border-left-color:rgb(0, 0, 0);
border-left-style:none;
border-left-width:0px;
border-right-color:rgb(0, 0, 0);
border-right-style:none;
border-right-width:0px;
border-top-color:rgb(0, 0, 0);
border-top-style:none;
border-top-width:0px;
display:inline-block;
font-family:Times;
font-size:16px;
font-stretch:normal;
font-style:normal;
font-variant-caps:normal;
font-variant-ligatures:normal;
font-variant-numeric:normal;
font-weight:normal;
height:798.547px;
line-height:16px;
margin-bottom:0px;
margin-left:0px;
margin-right:0px;
margin-top:0px;
object-fit:contain;
opacity:1;
padding-bottom:0px;
padding-left:0px;
padding-right:0px;
padding-top:0px;
vertical-align:baseline;
width:1680px;
【问题讨论】:
-
你试过用
border: none;覆盖它吗? -
@Petar-Krešimir 是的,我已经编辑以显示我的计算风格。在您尝试使用 chrome 将视频放入 html5 元素之前不要投票给我。
标签: html google-chrome html5-video