Relative path: Since it is relative, there must be a benchmark as a reference to illustrate
/ The top-level directory where the benchmark is located is the root directory, and the root directory is relative to other subdirectories
./ the current directory where the benchmark is located
.../ directory one level up from the current directory where the benchmark resides (parent directory of the current directory)
The following is a specific description of a java standard directory.
Here, it is assumed that trade is the root directory.
1. The benchmark a.html accesses the pictures in the img folder under the current directory
src = ./
img/a.jpg or src = img/a.jpg, img defaults to the img folder in the current directory, ./
representing the directory log
2. The benchmark a.html accesses the pictures in the img folder in the upper directory
src = ../
img/b.jpg, ../
representing the directory parameter
3. The reference a.html accesses the pictures in the img folder under the root directory
src = /
img/c.jpg or src = ../../
img/c.jpg, /
represents the root directory trade, ../..
/ represents the parent directory trade of the benchmark's parent directory parameter, that is, the root directory