2012-01-19 31 views
0

我使用PHP的呼應圖像縮小頁面上,但圖像和信息下井頁面,如下所示:顯示圖像內聯使用PHP和CSS

1 
2 
3 

我需要他們內聯,反正是有去做這個? 以下是我有:

<?php 
echo ' 
    <div class="auction_box" style="height:150px"> 
     <form name="myform" action="http://hffhfghfhf.net/testing.php" method="POST"> 
      <p> </p> 
      <p> </p> 
      <p> </p> 

      <img src="http://hfhfghfgh.net/'.$battle_get['pic'].'" height="96px" width="96px"/><br/> 


      Name:<br/>' .$v->pokemon. '<br/> 
      Level:' .$v->level. '<br/> 
      Exp:' .$v->exp. '<br/> 

       </form> 
    </div>'; 
    } 
    } 
    ?> 
+0

嘗試並花時間在發佈時正確編碼塊。有一個預覽區域,以便您可以看到所有內容都整齊呈現。 – mrtsherman

回答

0

應用float: left;.auction_box類,我覺得呢?

+0

從來沒有工作過...... – user1121083

+0

應用'display:inline-block'代替? –

+0

工作表示感謝 – user1121083