2011-02-04 104 views
1

如何獲得2個div並排。您可以查看此頁面 http://wholesaletoriches.com/newsite/thankyou/new3/3/爲什麼不把兩個div並排排列

我知道在A HREF顯示模塊使DIV到下一行,但將其更改爲內聯犯規顯示視頻

#video{ 
    width: 412px; 
    //float: left; 
    display: inline; 
    margin: 35px 0 0 56px; 
}   

<div id="video" 
    style="border: 1px solid rgb(204, 204, 204); width: 490px; height: 385px;"> 
    <a href="#" style="display:block;width:470px;height:365px;padding:10px;" 
     id="player"> </a> 
    <script type="text/javascript"> 
     flowplayer("player", "flowplayer-3.2.2.swf",{ 
      plugins: { controls: null },       
      canvas: { backgroundColor: '#ffffff',backgroundGradient: "none"}, 
      clip: { url: 'a.mp4' }, 
      onLoad: function() { 
       this.setVolume(100); 
      } 
     }); 
    </script> 
</div> 
<div style="float:right;width:300px;height:385px;border:1px solid red;"> 

</div> 
+5

我會建議只有非常寬容的人點擊該鏈接。 – jball 2011-02-04 18:51:31

+0

擺脫那個警戒thingy。這是/人覺得很煩人。 – PeeHaa 2011-02-04 18:55:25

回答

4

取消註釋在#videofloat:left應該做的訣竅。

2

如果你想浮動框旁邊的視頻(我猜你是問),你應該切換他們的標記,以便浮動第一。