我正在建立一个带有居中视频的网站,问题在于视频内部的黑色线条是左侧的右侧,它们并不是真的很大,但他们正在窃听我和我的同事。如何在CSS3的HTML5视频上添加边框
然后,我有铺设具有相同颜色的微小的边框作为我的视频元素中的背景是这样的想法:我与box-sizing
尖端从this site
#vid {
position: float;
margin-top: 100px;
height: 480px;
width: 854px;
border: 3px solid #ECECEC;
box-sizing: border-box;
}
<video id="vid" loop autoplay autobuffer controls muted>
<source type="video/mp4" src="http://www.mh-content.de/mh/video/MuH_Film_s_1.mp4">
</source>
<source type="video/webm" src="http://www.mh-content.de/mh/video/MuH_Film_s_1.webm">
</source>
<source type="video/ogg" src="http://www.mh-content.de/mh/video/MuH_Film_s_1.ogg"></source>
</video>
box-sizing: border-box
属性应用于容器,但仍无可见边框。
任何帮助理解:)
有人可以解释-1对我有问题吗? – 2014-09-23 16:31:16