0
當我點擊鏈接播放視頻時,它會轉移到頁面的左側。鏈接位於頁面的中心,我還希望視頻也可以在頁面的中心打開。相反,它會打開在PAGE電泳層用崇高的HTML5視頻播放器視頻向左移動,點擊按鈕播放它
HTML代碼的左側
<div id="demo">
<table>
<tr>
<td><a href='#' id='start_video1' class='custom_start_view'><h3>Watch Demo</h3> </td>
<td><img src="assets/images/logo.png" width="50" height="50"/> </td>
</tr>
</a>
<video id='video1' data-autoplay='true' poster='assets/images/logo.png' width='432' height='243' preload='none' style='display:none;'>
<source src='assets/DreamItReelExplainerVideo.mp4' />
<source src='assets/DreamItReelExplainerVideo.webm' data-quality='hd' />
</video>
</table>
</div>
js代碼
沒有看到更多(CSS/JS )它看起來好像你有一個隱藏的視頻容器,沒有任何東西使它居中。如果你添加'position:relative; margin:0 auto;'對於視頻容器的CSS,它將視頻容器置於其偏移父級(指示其位置的祖先元素)內。再次,沒有更多的信息,我不能確定這將如何在你的視頻框架內工作。 – Jasper 2014-10-27 21:36:03