【问题标题】:How to remover border on video in Internet Explorer?如何在 Internet Explorer 中删除视频边框?
【发布时间】:2017-06-17 19:52:52
【问题描述】:

我应该如何在 Internet Explorer 中去除标签周围的黑色边框?我尝试更改背景颜色,添加边框:无,但这些都不起作用。

<video id="hsense-video" class="hidden-sm hidden-xs" autoplay loop muted poster="video/hsense-poster.jpg">
    <source type="video/mp4" src="video/hsense-video.mp4" />
</video>

【问题讨论】:

    标签: html css internet-explorer


    【解决方案1】:

    你试过!important吗?

    video {
      border-style: none !important;
    }
    <video id="hsense-video" class="hidden-sm hidden-xs" autoplay loop muted poster="video/hsense-poster.jpg">
         <source src="https://www.w3schools.com/html/mov_bbb.mp4" type="video/mp4">
    </video>

    【讨论】:

    • 是的,结果一样
    • @Giedidius 屏幕截图你所拥有的,边框与视频无关,可能是包装器/容器
    【解决方案2】:

    我刚刚在Codepen IE浏览器中查看过,没有边框。还用视频制作了一个 html 页面并在 IE 11 -> NO BORDER 中检查! https://codepen.io/DannaB67/pen/GErxgx

    <video id="hsense-video" class="hidden-sm hidden-xs" autoplay loop muted poster="video/hsense-poster.jpg">
         <source src="https://www.w3schools.com/html/mov_bbb.mp4" type="video/mp4">
    </video>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-05-25
      • 2020-06-19
      • 1970-01-01
      • 2012-06-27
      • 2012-10-08
      • 2013-01-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多