Home > Web Front-end > HTML Tutorial > Local images cannot be displayed when viewed in a browser_html/css_WEB-ITnose

Local images cannot be displayed when viewed in a browser_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:49:46
Original
2419 people have browsed it

How to solve it?
This is not possible either
Please help experts


Reply to the discussion ( Solution)

Use relative paths, otherwise moving your html files to other computers will basically be ineffective. And if the picture and the html file are in the same folder, the picture will hang as soon as the folder is moved, and the address can only be modified.
Also, what you posted is completely wrong. Are you sure you did it right?

The page you opened in the browser
Is the url fill://xxx.html?

The path is wrong! ! ! !

Use relative paths to put your html files and images under the same path, and then directly add src="image name.jpg"


Change to

If it still doesn’t work, check if it’s a picture problem


Example:
This is OK displayed.

Did you write the path yourself? When you install Dreamweaver and set src=, it will select an image. After you select the image, it will generate the correct path for you.

Did you write the path yourself? When you install Dreamweaver and set src=, it will select an image. After you select the image, it will generate the correct path for you.


This is simple

Path problem...

How did the original poster solve it? I also encountered a similar situation!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template