私はftpサーバにウェブページをアップロードしています。このページには相対パスの画像が含まれています。私のすべての画像はImagesというフォルダに入っています。イメージソースタグは次のようになります。画像がサーバにレンダリングされていません
<img src="./images/construction_right.png" width="118" height="118" alt="under construction">
問題は、サーバー上のページをブラウズするときに画像がレンダリングされないことです。しかし、htmlページでアンカーを作成してクリックすると、画像に移動できます。
お知らせください。
ありがとうございます。
編集:
FTPサーバ:
2011年7月16日午前2時10分PMディレクトリ。
2011年7月16日午前2時10分PMディレクトリ..
2011年7月16日午前2時08分PMディレクトリ画像
2011年7月16日午前2時10分PM 929のindex.html
のindex.html:
<html>
<head>
<title>KDC SARL</title>
</head>
<body>
<div align="center" style="border:double;background-color:#933">
<table>
<tr>
<td><img src="images/construction_left.png" width="118" height="118" alt="under construction"></td>
<td>
<div>
<div align="center">
<strong style="font-size:36px">KDC furniture website is under construction</strong>
</div>
</td>
<td><img src="images/construction_right.png" width="118" height="118" alt="under construction"></td>
</tr>
</table>
<br/>
<img src="images/girl_sofa.jpg" width="882" height="262" alt="girl saloon">
<br/>
<img src="images/kinwai.jpg" width="883" height="290" alt="saloon">
</div>
</body>
</html>
ページはどこにありますか? ./を削除して "images/construction_right.png"を実行してみてください。ページにHTML BASEタグがないことを確認して、相対パスに影響を与える可能性があるかどうかを確認することもできます。 – mikey
@mikey iを削除しました./動作しません。 HTML BASEタグはありません。アンカー・タグを作成してイメージの同じsrcを供給すると、ナビゲートして表示できます。 –
testをクリックしても動作しますが、imgタグは動作しませんか? – mikey