您好我正嘗試在Twitter Boostrap 3中將Youtube視頻的iframe居中,目前它左對齊。如何在Twitter引導程序3中集中Youtube視頻(iframe)?
我用下面的HTML:
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item"
src="http://www.youtube.com/embed/zpOULjyy-n8?rel=0"
align="center" id="videothumbnail"></iframe>
</div>
CSS:
#videothumbnail{
height: 50%;
width: 50%;
float: center;}
可能重複的[縮小Youtube視頻到響應寬度](http://stackoverflow.com/questions/15844500/shrink-a-youtube-video-to-responsive-width) – davidcondrey 2014-10-05 00:04:40
@dcc這絕對不是一個該問題的重複。這個問題是關於如何使用從Twitter框架第3版內置到Bootstrap中的類。 – wuliwong 2015-01-04 18:53:28