Flex SWFObject嵌入

时间:2012-06-28 17:46:16

标签: flex swfobject

我正在使用swfobject.js脚本文件将SWF动态嵌入到我的aspx页面。

从这个site开始,我按照代码显示为:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  <head>
    <title>SWFObject dynamic embed - step 3</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <script type="text/javascript" src="swfobject.js"></script>

    <script type="text/javascript">
    swfobject.embedSWF("myContent.swf", "myContent", "100%", "95%", "9.0.0");
    </script>

  </head>
  <body>
    <div id="myContent">
      <p>Alternative content</p>
    </div>
  </body>
</html>

如果我在IE浏览页面,则显示整个flash swf,而在Chrome上,它只显示部分显示(似乎没有使用95%的高度)。

我从IE和Chrome实施中查看了源代码,它们完全相同。有什么建议吗?

0 个答案:

没有答案
相关问题