【发布时间】:2013-05-10 21:11:36
【问题描述】:
我正在尝试在响应式设计网页上使用 iframe 嵌入 Youtube 视频。
如何让最宽的页面带有更高分辨率的视频
(带参数&vq=hd1080)?
现在我有了媒体查询 css 脚本:
@media screen and (min-width : 1000px) {
.video{width:700px; height:500px;}
}
@media screen and (max-width: 1000px) and (min-width : 750px) {
.video{width:450px; height:300px; }
}
@media screen and (max-width: 750px) {
.video{width:260px; height:180px; }
}
和链接:
<div class="video" style="float:left;">
<iframe type="text/html" width="100%" height="100%"
src="http://www.youtube.com/embed/xxxxxxxx?version=3&rel=0"
frameborder="0" allowfullscreen></iframe>
</div>
我可以为这个链接在每个查询中添加不同的参数吗?
【问题讨论】: