Swfobject + IE 9高度100%问题

发布于 2024-11-25 23:39:06 字数 721 浏览 6 评论 0原文

I have two example pages.

  1. http://www.bobbyvandersluis.com/swfobject/testsuite_2_2/test_dynamic_fullbrowserflash.html
    this displays 100% width and height flash without a problem across all the browsers including IE9.

  2. http://www.bobbyvandersluis.com/swfobject/testsuite_2_2/test_dynamic_fullbrowserflash_adv.html
    this displays 100% width and height with min-height and min-width without a problem across all the browsers except for the IE9.

I need #2 link work with IE9. (fullsized flash with min-height and min-width)

I've tried everything I can do, but can't find a single clue...

Any advise will be appreciated..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

紧拥背影 2024-12-02 23:39:06

花了相当长的时间寻找解决方案,似乎唯一对我有用而无需进行任何重大更改的解决方案是我在这里找到的解决方案

http://code.google.com/p/swffit/issues/detail?id=16

基本上,我按照最后的建议添加了以下几行上面链接中的海报

<style type="text/css">
    // This line of code makes the flash appear full-sized in other browsers (Chrome, FireFox, etc) 
    html { height:100%; }           

    // These lines of code make the flash appear full-sized specifically for IE   
    object{
        position: absolute;
        outline: none;
    }
</style>

这是一个黑客行为但这对我有用。

Spent quite some time looking for the solution and the only one that seemed to work for me without making any major changes is the one that I found here

http://code.google.com/p/swffit/issues/detail?id=16

Basically, I added the following lines as suggested by the last poster in the link above

<style type="text/css">
    // This line of code makes the flash appear full-sized in other browsers (Chrome, FireFox, etc) 
    html { height:100%; }           

    // These lines of code make the flash appear full-sized specifically for IE   
    object{
        position: absolute;
        outline: none;
    }
</style>

It's a hack but it did the trick for me.

以可爱出名 2024-12-02 23:39:06

这就是问题

http://code.google.com/p/swfobject /issues/detail?id=552

这个链接说:

问题的根源是IE9标准模式不再返回
函数作为对象类型。 typeof function(){} == "function" 返回
在 IE9 标准模式下为 true,而不是“object”

因此,swfobject.js 第 564 行
需要更改以检查 styleSheet.addRule() 现在返回
标准模式下的“函数”。

这是在 IE9 中工作的新 swobject 的链接

https://github.com/swfobject

:)

This is the problem

http://code.google.com/p/swfobject/issues/detail?id=552

this link say:

The source of the problem is IE9 standards mode no longer returns
functions as object type. typeof function(){} == "function" returns
true in IE9 standards mode, instead of "object"

Therefore, swfobject.js on line 564
needs to be changed to check that styleSheet.addRule() now returns
"function" in standards mode.

And this is the llink to the new swobject working in IE9

https://github.com/swfobject

:)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文