When the url:url format in a css file refers to other images or font files, the url uses a relative path, and its path is relative to the css file;
The path of other files referenced in the JavaScript file is relative to the path of the html file that loads the JavaScript file.