我需要在我的網頁中並排顯示圖像和視頻。下面的代碼工作正常,除了對齊。水平中心對齊方式很好,因爲視頻和圖像不是垂直居中的,我該如何解決它。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