There are two ways of reading a picture:
Absolute path method and relative path method
1, Absolute path method: You need to complete the path of the picture to write to the Web page, otherwise you will get the picture is unsuccessful.
For example: Save the picture to the F drive (super picture)
The path should be written as:
2. Relative path Method: Relative path method requires the picture to be stored in the project folder
A, when the picture is very file at the same level, read the path just write out the name of the picture
Read as:
b, when the picture and file are not at the same level, you need to use ".. /"To make it go up.
The path is written as:
C, b Case of the extension, when the file saved path is deeper, also need to use ". /"Make it go up
The path is written as:
Several ways to read pictures of project files in eclipse