html - Bootstrap 嵌入响应不适用于 css 列数?

标签 html css twitter-bootstrap column-count

bootstrap embed-responsive 不适用于 css column-count。例如:

/** Divide the target element into <number> columns */
.columns {
    -webkit-column-count: 4;
    -webkit-column-gap: 10px;
    /*-webkit-column-fill: auto;*/

    -moz-column-count: 4;
    -moz-column-gap: 10px;
    /*-moz-column-fill: auto;*/

    column-count: 4;
    column-gap: 15px;
    /*column-fill: auto;*/
}

.video-box {
   border: 1px solid red;
}
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

<div class="container">
    <div class="columns">
        <div class="video-box">
            <!-- 16:9 aspect ratio -->
            <div class="embed-responsive embed-responsive-16by9">
                <iframe class="embed-responsive-item" src="https://www.youtube.com/embed/qYv5R_e5hTM" frameborder="0" allowfullscreen></iframe>
            </div>
        </div>

        <div class="video-box">
            <!-- 16:9 aspect ratio -->
            <div class="embed-responsive embed-responsive-16by9">
                <iframe class="embed-responsive-item" src="https://www.youtube.com/embed/feQ99SuGdsw" frameborder="0" allowfullscreen></iframe>
            </div>
        </div>

        <div class="video-box">
            <!-- 16:9 aspect ratio -->
            <div class="embed-responsive embed-responsive-16by9">
                <iframe class="embed-responsive-item" src="https://www.youtube.com/embed/r_KEWddTrVc" frameborder="0" allowfullscreen></iframe>
            </div>
        </div>
    </div>
</div>

结果:

enter image description here

第二个和第三个视频没有显示!

关于为什么以及如何绕过它的任何想法?

注意:

这似乎是 Chrome 上的一个错误。 Firefox 很好。

最佳答案

最后我使用了来自 http://masonry.desandro.com/ 的 jquery 插件修复这个错误。忘掉 column-count 吧!

关于html - Bootstrap 嵌入响应不适用于 css 列数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37761808/

相关文章:

css - 使用纯 CSS 在 :focus on input? 时更改 Input-Group-Addon 颜色

html - 如何删除 Bootstrap 网格中不需要的间隙,使其看起来像一张 table ?

html - Powershell将主体转换为HTML主体

javascript - 自动垂直图像 slider

CSS 媒体查询内的 Javascript 切换样式显示在媒体查询显示外中断

html - CSS :after will not work

用于排列图像链接的 HTML

javascript - 试图根据当前背景更改背景颜色 : background color has no value

html - 对齐动态生成的 div

twitter-bootstrap - 如何从 twitter bootstrap 网站下载示例