Home > Article > Web Front-end > Brothers and sisters, how many ways are there to use the relative path of src in the img tag_html/css_WEB-ITnose
The relative path method of src in the img tag
If the html file is in the qw folder on the c drive and 1.png is in another folder aw on the c drive and the folder qw is in the folder aw, how to use it in html Is this picture quoted in the file? ? ? Sisters and brothers, please solve it
You just need to remember that ../ represents the upper level folder. ../../ represents the upper two levels of folders, and the same goes for the upper three levels../../../
When writing a relative path, you must first use ../ to return to the current file and target file Common upper-level folder, and then find the target file
from this upper-level folder. You only need to remember that ../ means the upper-level folder. ../../ represents the upper two levels of folders, and the same goes for the upper three levels../../../
When writing a relative path, you must first use ../ to return to the current file and target file common upper-level folder, and then find the target file from this upper-level folder downwards