相关疑难解决方法(0)

IE9中的HTML5视频两侧都显示黑色边框

我在我的网站上使用HTML5视频标签.该视频与所有浏览器完美播放,但在IE9中它显示黑色边框(黑色扩展名).当播放器的大小超过视频大小时,通常视频播放器会在其两侧显示一些黑色延伸.

css html5

6
推荐指数
1
解决办法
7792
查看次数

html5 视频元素 1px 白色底部边框在 chrome 上

由于某些原因,在 Chrome 上,我的视频容器元素底部出现白色底部边框。

<video id="cover" src="video.mp4" autoplay="" loop=""></video>
Run Code Online (Sandbox Code Playgroud)

有谁知道如何解决这一问题?

这是元素的计算样式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;
Run Code Online (Sandbox Code Playgroud)

html google-chrome html5-video

5
推荐指数
1
解决办法
4144
查看次数

如何删除我的视频播放器上的轮廓

我有一个基本的视频播放器,当单击播放视频时,我会看到一种蓝色轮廓,我希望将其删除。

我已经尝试过基本的 like outline:none,但没有任何改变。我也在互联网上研究过,包括w3学校,它告诉可能使用大纲属性。我是不是放错地方了?

HTML

<div class="video-container">
    <figure id="videoContainer" data-fullscreen="false">
        <video id="video" controls autoplay preload="metadata" poster="img/poster.jpg">
            <source src="../videoplayer/intro.mkv" type="video/mp4">

            <!-- Offer download -->
            <a href="..videoplayer/intro.mkv">Download MP4</a>
        </video>
        <ul id="video-controls" class="controls">
            <li><button id="playpause" type="button">Play/Pause</button></li>
            <li><button id="stop" type="button">Stop</button></li>
            <li class="progress">
                <progress id="progress" value="0" min="0">
                    <span id="progress-bar"></span>
                </progress>
            </li>
            <li><button id="mute" type="button">Mute/Unmute</button></li>
            <li><button id="volinc" type="button">Vol+</button></li>
            <li><button id="voldec" type="button">Vol-</button></li>
            <li><button id="fs" type="button">Fullscreen</button></li>
        </ul>
        <figcaption>

        </figcaption>
    </figure>
Run Code Online (Sandbox Code Playgroud)

css

.video-container{
    background-color: #191919;
    width: 100%;
    height: 1000px;
}
figure {
    max-width:1024px;
    max-width:64rem;
    width:250%;
    height:auto;
    margin:20px 0 …
Run Code Online (Sandbox Code Playgroud)

html css

3
推荐指数
1
解决办法
5982
查看次数

标签 统计

css ×2

html ×2

google-chrome ×1

html5 ×1

html5-video ×1