我為什么不能顯示圖片?
問題描述
<table border="1" align="center">
<tr>
<td width="325" height="155">
<img src="bd1.png" alt="百度"/>
</td>
<td width="480" height="320">
<img src="kz1.jpg" alt="褲子"/>
</td>
</tr>
<tr>
<td width="704" height="535">
<img src="dq1.jpg" alt="電器"/>
</td>
<td width="667" height="438">
<img src="yf1.jpg" alt="衣服"/>
</td>
</tr>
</table>
問題解答
回答1:本地路徑的絕對路徑放進(jìn)來后就弄對了。之前是:同一個路徑下直接放圖片名沒有用。但是網(wǎng)絡(luò)上教程有這么做的,但是我暫時沒有想起來為什么。
<table border="1" align="center">
<tr>
<td width="325" height="155" background:"">
<img src="D:網(wǎng)站設(shè)計html5設(shè)計移動頁碼設(shè)計bd1.png" alt="百度"/>
</td>
<td width="480" height="320">
<img src="D:網(wǎng)站設(shè)計html5設(shè)計移動頁碼設(shè)計kz1.jpg" alt="褲子"/>
</td>
</tr>
<tr>
<td width="704" height="535">
<img src="D:網(wǎng)站設(shè)計html5設(shè)計移動頁碼設(shè)計dq1.jpg" alt="電器"/>
</td>
<td width="667" height="438">
<img src="D:網(wǎng)站設(shè)計html5設(shè)計移動頁碼設(shè)計yf1.jpg" alt="衣服"/>
</td>
</tr>
</table>
相關(guān)文章:
1. 關(guān)于docker下的nginx壓力測試2. docker - 各位電腦上有多少個容器啊?容器一多,自己都搞混了,咋辦呢?3. mac里的docker如何命令行開啟呢?4. 關(guān)docker hub上有些鏡像的tag被標(biāo)記““This image has vulnerabilities””5. nignx - docker內(nèi)nginx 80端口被占用6. docker容器呢SSH為什么連不通呢?7. dockerfile - 我用docker build的時候出現(xiàn)下邊問題 麻煩幫我看一下8. docker-compose 為何找不到配置文件?9. docker start -a dockername 老是卡住,什么情況?10. angular.js使用$resource服務(wù)把數(shù)據(jù)存入mongodb的問題。

網(wǎng)公網(wǎng)安備