我已經看過其他問題,但還沒有找到答案,我呼應圖像從數據庫查詢 - 哪些作品 - 到圖像標記,但圖像不顯示在瀏覽器中,但是代碼都在源代碼中,當我在瀏覽器中打開圖像時,它就在那裏!IMG標籤不顯示後PHP回聲陳述
我的代碼;
echo '<a href="http://www.example.com/adClick.php?id='.$a[0]['id'].'" target="_blank"><img src="http://www.example.com/images/ads/JobAlert/'.$a[0]['Image'].'" /></a>';
呈現html;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<p></p><a href="http://www.example.com/adClick.php?id=3" target="_blank">
<img src="http://www.example.com/images/ads/JobAlert/eb6daad2c02b3ba3310c03b3ef77e0ceb801cd8b74742356b2e7af37ef39a5b468752706.png" />
</a>
</body>
</html>
你是在頁面加載之前還是頁面加載之後回顯它? ''元素渲染得好嗎? – Sergio
更新了問題,正如我所說的,回顯圖像是正確的(ID也是這樣) –
而且/不會被CSS規則隱藏/渲染到別處嗎? – RMK