以下youtube嵌入代码适用于Firefox和Chrome,但不适用于Safari 5.0.5:
<div style="width:100%; height:390px; padding-top:30px">
<object style="height:390px; width:640px">
<param name="movie" value="https://www.youtube.com/v/123VideoID?version=3&feature=player_detailpage">
<param name="allowFullScreen" value="true"><param name="allowScriptAccess" value="always">
<embed
src="https://www.youtube.com/v/123VideoID?version=3&feature=player_detailpage"
type="application/x-shockwave-flash"
allowfullscreen="true"
allowScriptAccess="always"
width="640"
height="360">
</object>
</div>
为什么这在Safari 5.0.5中无效?
到目前为止我唯一尝试的是
youtube.com/embed/123VideoID`
而不是
youtube.com/v/123VideoID