在HTML5中,Swf显示得太小

时间:2014-02-09 23:02:38

标签: html5 responsive-design embed flash

我尝试了很多变化,但它不能100%显示我的Flash动画(可调整大小)。 动画在这里:http://webdesign.igorlaszlo.com/blog/wp-content/uploads/flash/site-complet/index.html

我的文档类型:

<!DOCTYPE html>
<!--[if lt IE 7]><html class="no-js ie ie6 lte8 lte7"><![endif]-->
<!--[if IE 7]><html class="no-js ie ie7 lte8 lte7"><![endif]-->
<!--[if IE 8]><html class="no-js ie ie8 lte8"><![endif]-->
<!--[if lt IE 9]><script src="http://www.mywebsite.com/js/html5.js" type="text/javascript"></script><![endif]-->
<!--[if !IE]><!-->
    <html lang="fr-FR" style="" class="js">
<!--<![endif]--> 

嵌入swf的第一个变体:

<embed align="middle" allowscriptaccess="sameDomain" style="border:0px solid #dddddd" height="100%" width="100%" pluginspage="http://www.adobe.com/go/getflashplayer" quality="high" src="http://www.mywebsite/index.swf" type="application/x-shockwave-flash"></embed>

第二种变化:

<object>
<param name="movie" value="http://www.mywebsite.com/index.swf"/>
<param name="allowFullScreen" value="true"/>
<param name="allowscriptaccess" value="sameDomain"/>
<param name="wmode" value="transparent"/>
<embed wmode="transparent" src="http://www.mywebsite.com/index.swf" type="application/x-shockwave-flash" class="swfObject" allowscriptaccess="sameDomain" allowfullscreen="true"/>
</object>

任何想法???

1 个答案:

答案 0 :(得分:1)

这应该有效:

<style type="text/css">
html, body, object{width:100%;height:100%;padding:0;margin:0;}
</style>
相关问题