2010-12-27 12 views
1

整列のdivインライン最初div.Iに第二のdivをインラインにする方法

<html> 

<div style="display: inline"> 
<table style="table-layout:fixed;width:100%;"> 
    <tr> 
       <td width ="20%"> 
       </td> 
      </tr> 
      <tr> 
       <td width="20%"> 
        1.Can you view the image? 
       </td> 
       <td width="20%"> 
        1.Can you upload the image? 
       </td> 

     </tr> 
     </table> 
    </div> 
      <div style="display: inline;"> 
       <object width="100" height="100"> 
       <embed src="image_tr.swf" width="250" height="250"> 
       </embed> 
       </object> 
      </div> 

+0

「最初のdivへのインライン」とはどういう意味ですか? –

+0

_20%_ + _20%_ + _20%_!= _100%_そしてあなたは 'tables'を使っているので、あなたのswfを別の' td'に入れませんか? – Shikiryu

答えて

1

両方のdivの幅を定義し、左それらをフロートTDSの隣に表示されるようにフラッシュswfファイルを必要としますそして

div1 { 
float:left; 
//define the width 
} 
div2{ 
float:right; 
//define the width 
} 
0

私が正しく理解していれば、その表示に注意してください右したがって、あなたは単に表示を指定した場合、継承されたプロパティではありません:だけでなく、テーブルのインライン、それは大丈夫でしょう。

関連する問題