![](/img/trans.png)
[英]Not showing image icon of <img> tag in firefox and chrome while showing in IE browser using html
[英]img tag proper in firefox but in IE it is showing the image at the bottom of the screen
嗨,我的HTML中包含以下代碼。
<html>
<tr>
<td>
some code here...
</td>
<td align="left" valign="top" width="35%">
<img src="http://ocs.landsend.com/lebowebcontent/images/global/marketing/TrueValue_SHIP_IMG.jpg" onerror='this.src="http://ocs.landsend.com/lebowebcontent/images/global/marketing/Stand_Ship_UPS_or_USPS.jpg";this.onerror=""' />
</td>
</tr>
</html>
該圖像必須顯示在屏幕頂部的第二列中,但在IE中卻不顯示在底部。但是在Firefox和chrome中它可以正常工作。
請幫忙..
您缺少文檔類型,而IE的允許性較低。 將其放在html代碼的開頭:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.