开发者

Cannot see the image of my HTML file

Whats going wrong with my explorer or mozilla. I used the

         <img src="path"/>

but the pic cannot be seen, when i open my html file. It just opens an empty box at that place.How do i 开发者_如何学JAVAmake it through? I cannot display my pictures in my html file.Could you tell me which version of explorer supports it?


Make sure that your file is really named how you think it is. If you have "Hide known extensions" enabled, disable it and check again. Also, check if the extension in the path is the same case as the files. I once had a problem where images would not display in IE because of the image extensions being in upper case.


where is your HTML file and where is your image file ? lets suppose your HTML file is anywhere and your image is in the same directory then you can give it path src="image.extension".

better you should check it in the same directory. Thanks


Make sure your path is correct.

If the image is in the same folder as your html file, then it should just be

<img src="image_name.jpg" />

If you reference your images from another folder, you will need to place the proper path in there. Depending on the file structure, it could be something like

<img src="/images/image_name.jpg" />

<img src="../images/image_name.jpg" />

<img src="../../images/image_name.jpg" />

Also check that you have

  1. spelled the file and folder names correctly
  2. used the right upper- and lowercase letters (this can be problem for file name extensions, like .jpg vs .JPG)
  3. actually saved the file in the place it is supposed to be
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜