Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/77.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 使用对象时不希望显示Div区域_Html_Css - Fatal编程技术网

Html 使用对象时不希望显示Div区域

Html 使用对象时不希望显示Div区域,html,css,Html,Css,嗨,我正在使用以下代码: <div id="wrapper"> <div id="header">HEADER</div> <div id="content-main"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.

嗨,我正在使用以下代码:

<div id="wrapper">
    <div id="header">HEADER</div>

    <div id="content-main">
              <object
        classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
        codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
        id="selfieland"
        width="100%" height="100%">
        <param name="movie" value="selfieland.swf">
        <param name="bgcolor" value="#D6D6D6">
        <param name="quality" value="high">
        <param name="seamlesstabbing" value="false">
        <param name="allowscriptaccess" value="samedomain">
         <PARAM NAME="SCALE" VALUE="default">
        <embed
          type="application/x-shockwave-flash"
          pluginspage="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
          name="selfieland"
          width="100%" height="100%"
          src="Images/selfieland.swf"
          bgcolor="#D6D6D6"
          quality="high"
          seamlesstabbing="false"
          allowscriptaccess="samedomain"
          SCALE="default"
        >
        </embed>
      </object>
        TEST
    </div>
    <div id="footer">©  net - Copyright 2014 - Terms and Conditions</div>
</div>  

嗯,你愿意回到这个问题上,重新开始吗

我想你应该试试SWFObject:

他们文档中的这个示例看起来可能对您有所帮助:

<!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", "300", "120", "9.0.0");
    </script>
  </head>
  <body>
    <div id="myContent">
      <p>Alternative content</p>
    </div>
  </body>
</html>

SWFObject动态嵌入-步骤3
嵌入swf(“myContent.swf”、“myContent”、“300”、“120”、“9.0.0”);
替代内容

下载、设置和修改,试一试,让我知道它是如何为您工作的

<!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", "300", "120", "9.0.0");
    </script>
  </head>
  <body>
    <div id="myContent">
      <p>Alternative content</p>
    </div>
  </body>
</html>