2012-01-29 90 views
0

我无法删除HTML页面上SWF之间的空白区域。水平SWF的空白空间

我知道在CSS中使用'block',但是因为它是水平的,所以似乎不起作用。我也为边界加了“0”无济于事。试图解决这个问题,我的智慧走出了我的智慧。

我的HTML代码:

<div id="banner">   
    <div class="wrap"> 
     <div style=height:66px; align="center"> 
      <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="151" height="65" border="0"> 
      <param name="movie" value="images/flash_buttons/home_white.swf" /> 
      <param name="quality" value="high" /> 
      <param name="wmode" value="transparent" /> 
      <param name="swfversion" value="6.0.65.0" /> 
      <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. --> 
      <param name="expressinstall" value="Scripts/expressInstall.swf" /> 
      <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. --> 
      <!--[if !IE]>--> 
      <object type="application/x-shockwave-flash" data="images/flash_buttons/home_white.swf" width="151" height="65" border="0"> 
       <!--<![endif]--> 
       <param name="quality" value="high" /> 
       <param name="wmode" value="transparent" /> 
       <param name="swfversion" value="6.0.65.0" /> 
       <param name="expressinstall" value="Scripts/expressInstall.swf" /> 
       <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. --> 
       <div> 
       <h4>Content on this page requires a newer version of Adobe Flash Player.</h4> 
       <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p> 
      </div> 
       <!--[if !IE]>--> 
      </object> 
      <!--<![endif]--> 
     </object> 
      <object id="FlashID2" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="151" height="65" border="0"> 
      <param name="movie" value="images/flash_buttons/guide_green.swf" /> 
      <param name="quality" value="high" /> 
      <param name="wmode" value="transparent" /> 
      <param name="swfversion" value="6.0.65.0" /> 
      <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. --> 
      <param name="expressinstall" value="Scripts/expressInstall.swf" /> 
      <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. --> 
      <!--[if !IE]>--> 
      <object type="application/x-shockwave-flash" data="images/flash_buttons/guide_green.swf" width="151" height="65" border="0"> 
       <!--<![endif]--> 
       <param name="quality" value="high" /> 
       <param name="wmode" value="transparent" /> 
       <param name="swfversion" value="6.0.65.0" /> 
       <param name="expressinstall" value="Scripts/expressInstall.swf" /> 
       <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. --> 
       <div> 
       <h4>Content on this page requires a newer version of Adobe Flash Player.</h4> 
       <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p> 
      </div> 
       <!--[if !IE]>--> 
      </object> 
      <!--<![endif]--> 
     </object> 

和截图:

http://www.hosted101.net/uploads/upload/1327873868428issues.png

+0

您是否尝试过在您的对象标签上设置边距和填充为0? – j08691 2012-01-29 22:15:29

+0

是的;那不幸的是没有什么。 – 2012-01-29 22:47:20

+0

使用SWFobject嵌入您的嵌入代码看起来不正确 – 2012-01-30 18:07:02

回答

0

默认情况下,body元素的HTML页面上有余量。指定CSS:你的HTML文档

+0

这不能解决它。 – 2012-01-31 19:37:57

+0

不幸的是我看不到你的HTML页面,所以我不能说真正的原因。这个空白有几个可能的原因。主要:“对象”HTML元素或其父元素的边距或填充,您将swf嵌入到HTML中的缩放模式。但没有真实的例子,我不知道它是什么:) – kostik 2012-01-31 20:30:44

0

使用line-height: 0;的容器内

html, body{ 
    margin: 0; 
    padding: 0; 
} 

,可以帮助你。

-1

要删除空格,请使用HTML代码中的wmode="transparent"。这是一个例子。

<embed src="imageurl.swf" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"quality="high" width="1020" height="600" " > 
+1

“示例”在哪里? – 2014-11-18 07:19:37