有人能解释一下为什么会这样吗
Bootstrap Carousel
让HTML5视频在谷歌chrome上闪烁?每次旋转木马更改图像时,下面的视频都会闪烁,我不知道这有什么问题,这与视频包装上的类“embed responsive embed-responsive-16by9”有关,因为当我删除该类时,问题就停止了,但我需要在页面上有一个响应视频。
https://codepen.io/anon/pen/zREPqP
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h2>Carousel Example</h2>
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active">
<img src="https://www.w3schools.com/bootstrap/la.jpg" alt="Los Angeles" style="width:100%;">
</div>
<div class="item">
<img src="https://www.w3schools.com/bootstrap/chicago.jpg" alt="Chicago" style="width:100%;">
</div>
<div class="item">
<img src="https://www.w3schools.com/bootstrap/ny.jpg" alt="New york" style="width:100%;">
</div>
</div>
<!-- Left and right controls -->
<a class="left carousel-control" href="#myCarousel" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#myCarousel" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
<div class="row">
<div class="col-md-offset-2 col-md-8">
<div class="embed-responsive embed-responsive-16by9"><video src="//player.vimeo.com/external/159873222.hd.mp4?s=54c0141dd1e7ab5a78a2fda1d69a9f011c89bf42&profile_id=113" poster="http://cletadmin.git-staging.clet.edu.au/assets/images/video/why-study.jpg" controls="controls" width="300" height="150"></video></div></div>
</div>
</body>
</html>
复制步骤:
在chrome上打开上面的链接,让滑块播放,不要在视频上点击播放,只需观察它从海报图像到灰色背景的闪烁。