Why do I show cross forks by referencing images? Solution

Source: Internet
Author: User
Why do I show cross forks by referencing images? Solution & lt; html & gt; & lt; head & gt; & lt; title & gt; image insertion example & lt;/title & gt; & lt; /head & gt; & lt; body & gt; & lt; img & nbsp; src = "E: /php/wwwroot/statics/images/v9 _ why are the cross forks displayed in the referenced image? Solution


Image insertion example








------ Solution --------------------
The image cannot be opened because the image path is faulty.
------ Solution --------------------
Path Problems. Right-click your XX and check that there is a path in the property.
------ Solution --------------------
E:/php/wwwroot/statics/images/v9_logo.jpg

This address references your local image. of course it is wrong.

According to your page address, it should be
/Statics/images/v9_logo.jpg
../Statics/images/v9_logo.jpg
./Statics/images/v9_logo.jpg

Let's see which of the three above are correct.

I think the address of your browser cannot see your directory structure...

------ Solution --------------------
Write relative path

------ Solution --------------------
V9 is a directory.
V9_logo.jpg "alt =" this is a PHP icon "> Is it good?
------ Solution --------------------
If the image cannot be displayed, % 99 is a path problem. in the future, pay attention to pulling the image.
------ Solution --------------------
Hey, you won't right-click the image you cannot display, select Properties, and check your path?

../Wwwroot/statics/images/v9/logo.jpg

This path should be correct unless unexpected.
Try it.
Then, can't you put your images and files better? One wwwroot and one Chinese.
------ Solution --------------------
There are two vertices in front. Do not read the error ....

"../Wwwroot/statics/images/v9/logo.jpg"
------ Solution --------------------
I know that only IE can display this path.

You can change the image path to http: // yousite /...
------ Solution --------------------
Try it

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.