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; srcE: phpwwwrootstaticsimagesv9_logo.jpg & nbsp; alt this is the PHP icon. why do I use the picture to show cross forks? 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