2012-01-29 89 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