Home > Web Front-end > HTML Tutorial > Brothers and sisters, how many ways are there to use the relative path of src in the img tag_html/css_WEB-ITnose

Brothers and sisters, how many ways are there to use the relative path of src in the img tag_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:47:55
Original
1574 people have browsed it

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


Reply to the discussion (solution)

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


1
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template