由于某些原因,我的iframe高度受到限制,无论我是在CSS中还是在标签中设置它。我不确定这是什么,搜索什么也没透露。我不知道该做什么,可能需要放弃嵌入。此外,当我强制容器到960px(视频的高度)时,它将获得一个没有定义溢出选项的滚动条。奇怪的。
http://jordan.rave5.com/tmpstuff/
<div class="left-large-box">
<div class="large-box">
<div class="large-box-content">
<div class="content-full">
<div class="column-header">
<div class="column-icon">
Title here
</div>
</div>
<p><iframe width="690" height="388" src="http://www.youtube.com/embed/jH7f6e9FsLc" frameborder="0" allowfullscreen></iframe></p>
</div>
</div>
<div class="box-end"></div>
</div>
</div>
答案 0 :(得分:1)
在您的样式表blue.css
中,您将height: auto;
应用于所有元素,这将覆盖iframe的height
属性。您仍然可以使用元素上的样式来设置高度。
如果您移除height: auto
,height
属性也可以。