Xiaobai doesn't know much about the introduction of picture src. Ask for guidance.

clipboard.png

clipboard.png
clipboard.png

clipboard.png

Mar.18,2021

.. / img/


Road strength is introduced in two ways: absolute positioning and relative positioning. The subject should use relative positioning, which is to find other files according to the current page. I guess your html page should be placed in the html folder. Suppose your html page is called a.html, then the path to img is.. / img/1.jpg. The subject can first go to the position of a.html and imagine what steps to go from a.html to 1.jpg. You need to go back to the previous level and open the img folder to find out if it is correct. Return to the previous level is.. /, enter the folder and enter the file name img. You'll know if you try it a few more times.


/ > <br> <img src=https://img.codeshelper.com/upload/img/2021/03/18/niyxun4arym10168 / img/2.jpg

this may be familiar from the DOS era (after all, it is commonly used). Of course, you can also simulate it with cmd now.

Under the

command line, when you use the dir command to retrieve a directory, there are two special folders at the top of each directory:

.
..

the former represents the current directory and the latter represents the previous directory.
this can be used in cd jump to the current (working) directory command, for example, you use cd. to jump to the current directory, while cd.. is to jump to the next level directory. When writing the relative path, the same is true. First of all, you need to know the location of your current file, and then find the target file, such as yours, the html file is placed under the html folder, and the img is placed under the img folder, so if you want to find this img, you need to jump out of its own small directory (cut to the parent directory), and then jump into the img directory to find the corresponding file. Then you can write directly according to this idea, which is a path like .. / img/xxx.jpg .
more nagging sentence, there is a path that starts with / , which means to start looking from the root directory. For example, if you use a local file protocol, it may start with an address such as file:/. The file:// in front is a protocol declaration, and the third line represents the absolute root path.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c0dccf-32baa.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c0dccf-32baa.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?