我在一个网站上嵌入了这个视频http://www.youtube.com/watch?feature=player_embedded&v=kzsBCriOrh8但是我在'm getting a square aspect ratio. As you can see, in Youtube the aspect ratio is widescreen with black bars to the sides. I want this same behavior when I embed the video. I' m之后关注了新的嵌入式参数http://code.google.com/apis/youtube/player_parameters.html
我似乎无法找到任何可以添加到此控件宽高比的选项
&iv_load_policy=3&rel=0&autohide=1&showinfo=0&theme=light&color=white&wmode=Opaque
有任何想法吗?
EDIT:
我解决了! http://support.google.com/youtube/bin/answer.py?hl=en&answer=146402我还在js脚本中添加了固定的宽度和高度 . 有用 .
2 回答
我解决了! http://support.google.com/youtube/bin/answer.py?hl=en&answer=146402 . 我还在js脚本中添加了固定的宽度和高度 . 有用 .
高度和宽度由
iframe
上用于嵌入视频的height
和width
属性控制 .