【问题标题】:Scale embed flash to browser将嵌入 Flash 缩放到浏览器
【发布时间】:2010-10-31 20:42:36
【问题描述】:

我在网页中使用嵌入式 Flash 播放器,我想将其缩放到浏览器窗口。 当我在闪存参数中输入“高度:100%”时,我得到一个空白页。 这是页面的代码:


    SlideShowPro({
        target: "slideshow",
        xmlFilePath: "galeries/images.php?album=1",
        width: "100%",
        height: 740,

        params: {
            allowfullscreen: true,
            wmode: "transparent",
        },

        mobile: {
            auto: true,
            showBackButton: true,
            showInfoButton: false,
        },
        flashvars: {
            paramXMLPath: "galeries/m/params/ice.xml",
            contentScale: "Crop to Fit",
        }
    });

这是我正在使用的风格:


body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #FFFFFF;
}

宽度没问题,但是当我将高度从 740 更改为“100%”或删除它时,我有一个空白页。

你能帮我解决这个问题吗?

谢谢

【问题讨论】:

    标签: javascript flash


    【解决方案1】:

    将您的电影嵌入到 div 中,并将 div 的宽度和高度设置为 100%。如果您的 JS 代码工作正常,Flash 影片将会缩放。

    【讨论】:

      猜你喜欢
      • 2011-04-24
      • 2017-07-10
      • 1970-01-01
      • 1970-01-01
      • 2011-07-06
      • 1970-01-01
      • 2012-11-15
      • 2014-06-12
      • 1970-01-01
      相关资源
      最近更新 更多