[英]How can I remove border from <video> tag?
I have a video on my website and everything looks fine on desktop.我的网站上有一个视频,在桌面上一切正常。 However, on iPhone (I'm using Chrome) there is a border.
但是,在 iPhone 上(我使用的是 Chrome)有一个边框。 I've tried the solutions posted here , but none have worked so far (I'm using Bootstrap 4).
我已经尝试过这里发布的解决方案,但到目前为止都没有奏效(我使用的是 Bootstrap 4)。
My code:我的代码:
video { -webkit-mask-image: -webkit-radial-gradient(white, black); -webkit-backface-visibility: hidden; -moz-backface-visibility: hidden; -webkit-appearance: none } .medio-pago-img-container, .national-video { border: none; outline: none !important; box-shadow: none; }
<div class="col-lg-6 col-md-12 col-sm-12 col-xs-12 col-12 medio-pago-img-container text-center"> <video src="images/phone-national.mp4" class="national-video" id="nationalVideo" type="video/mp4" width="464" height="500" muted autoplay loop playsinline>Your browser does not support the video tag</video> </div>
I tried taking a screenshot of my iPhone screen but the borders are not shown in the screenshot, so I took a picture of my phone.我尝试对我的 iPhone 屏幕截图,但截图中没有显示边框,所以我拍了一张手机的照片。
The answer given by @cssyphus above worked.上面@cssyphus 给出的答案有效。 I added
outline: unset;
我添加了
outline: unset;
and the border is gone.边界消失了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.