我需要在我的网页中并排显示图像和视频。下面的代码工作正常,除了对齐。水平中心对齐方式很好,因为视频和图像不是垂直居中的,我该如何解决它。Bootstrap col-md-6对齐垂直中心
<div class="container-fluid text-center" style="padding-top:100px;">
<div class="row" >
<div class="col-md-6 " style="background-color:#000;min-height:700px;">
<video id="video_id" width="100%" height="100%" controls="controls" align="middle" >
<source src="http://www.w3schools.com/html/mov_bbb.mp4" type="video/ogg">
Your browser does not support the video tag.
</video>
</div>
<div class="col-md-6 vcenter" style="background-color:#999;min-height:700px;">
<img id ="detected_id" src="assets/images/src.jpg" width="100%" height="100%"> </img>
</div>
</div>
</div>
我试过这里的解决方案vertical-align with Bootstrap 3但不工作。
灿你创建一个小提琴? – ProEvilz
你的图片尺寸是多少? –
图片尺寸为900x600 – CodeDezk