2016-11-21 94 views
-4

我在用戶配置文件&用戶圖庫,我想顯示用戶上傳圖像,我有問題。 我有下面的代碼爆炸php陣列圖像

if($uploads) { $s = explode(",", $uploads); // Explode the images string value 
$r=1; $f=count($s); foreach($s as $a) { $newdata=$Mat>Get_Upload_Image_Id($a); 
if($newdata) { $final_image=$base_url."uploads/".$newdata['image_path']; 
echo '<a aria-haspopup="true" target="_blank" href="#"> 
     <div class="Image iLoaded iWithTransition tThumbImage" id="'.$msg_id.'" src="'.$final_image.'" style="background-image: url('.$final_image.');"> 
     </div> 
     <div class="photoShadow"></div> 
     </a>'; 
} 
$r=$r+1; } echo '<span class="snd" style="display:none;" rel="'.$uploads.'"> 

</span>'; }

code image - 此代碼給我單獨圖像,我有我的主頁該代碼它是確定不同的職位,但在配置文件,這不是好我不想改變這一點,但我堅持這一點。

我想要的節目相似圖片沒有單獨在一排: IMAGE-RESULT

+4

粘貼代碼在這裏,沒有圖像。 –

+0

可能是一個CSS問題,而不是一個PHP的問題。 – jeroen

+0

請重新檢查您的CSS以充分滿足您的要求... –

回答

1

把這個類在你的CSS和嘗試,或者如果存在同一類風格不是更新。

CSS類

.iLoaded 
{ 
    display: inline-block; 
    vertical-align: middle; 
    padding: 3px 5px; 
}