css - Chrome 和 Soundcloud 嵌入 CSS3 列的问题

标签 css google-chrome iframe soundcloud multiple-columns

在 Chrome 中,当我将 soundcloud 嵌入到 css3 列中时,它总是跳出容器?!

注释:

  • 我注意到嵌入内容是否在第一列中不再尝试跳转。
  • 这种情况仅发生在 Chrome 中,Safari 不受影响。

演示(在 Chrome 38 中查看): http://jsfiddle.net/52u9qe8r/2/

.

<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <style>
            .columns{
                -webkit-columns: 100px 2;
                columns: 100px 2;
                background:red;
                text-align:left;

            }
            body{
                background:yellow;
            }
            .soundcloud{
                background:lime;
                -webkit-column-break-inside:avoid;
                -moz-column-break-inside:avoid;
                -o-column-break-inside:avoid;
                -ms-column-break-inside:avoid;
                column-break-inside:avoid;
            }

        </style>
    </head>
    <body>
        <div class="columns">
            <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
            <p>Golden Grid System (GGS) splits the screen into 18 even columns. The leftmost and rightmost columns are used as the outer margins of the grid, which leaves 16 columns for use in design. Now, 16 columns sounds a bit much for anything other than huge widescreen monitors. This is where the folding, inspired by the DIN paper system and Unigrid, comes in. The 16 columns can be combined, or folded, into 8 columns for tablet-sized screens, and into 4 columns for mobile-sized ones. This way GGS can easily cover any screen sizes from 240 up to 2560 pixels. The dimensions of the grid in each configuration are noted down within CSS comments, accompanied by suitable media queries, like thus:</p>
            <div class="soundcloud"><iframe width="100%" height="450" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/playlists/21736213&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;visual=true"></iframe></div>
            <p>I'm some more text text</p>
        </div>
    </body>
</html>

最佳答案

Add to the CSS class .soundcloud

transform: translate3d(0,0,0);

关于css - Chrome 和 Soundcloud 嵌入 CSS3 列的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26760360/

相关文章:

javascript - 检测 iframe 中的点击

javascript - 在 iframe 加载时加载文本

javascript - 通过更新变量更新 D3 图表的大小

html - 高度 :100% not working in Internet Explorer

javascript - 有没有办法找到 Google Chrome 的 "Aw, Snap"页面的根本原因?

security - PHPUnit/Selenium - 如何阻止 Google Chrome 显示 SSL 安全错误

javascript - 如何将表单写入空的 iframe?

css - 另一个 Div 中的 Google Maps API v3

PHP单页表单验证表单未验证

python - 如何防止缓存响应( flask 服务器,使用 chrome)