iFrames仅在第一列中正确显示。我添加了一些图像来展示它们如何正确显示,而iFrame则没有。 iframe闪烁,然后消失。请指教!我在Mac上使用Chrome版本42.0.2311.135
我有一个演示设置如下: 样式:
.content {
-moz-column-count: 3;
-webkit-column-count: 3;
column-count: 3;
-moz-column-gap: 1%;
-webkit-column-gap: 1%;
column-gap: 1%;
}
.item {
display: inline-block;
margin: 0 0 20px;
width: 100%;
background: blue;
}
.item iframe, .item img {
width: 100%;
height: 250px;
}
和html:
<div class="content">
<div class="item"><iframe src="https://www.youtube.com/embed/fwkJtgVswgM" frameborder="0" allowfullscreen=""></iframe></div>
<div class="item"><iframe src="https://www.youtube.com/embed/fwkJtgVswgM" frameborder="0" allowfullscreen=""></iframe></div>
<div class="item"><img src="http://twopointoakland.com/wp-content/uploads/2014/08/bluedemobutton.jpg" /></div>
</div>