可以说,我创建一个子域: http://subdomain.mydomain.com/
Lets say I create a subdomain : http://subdomain.mydomain.com/
这原本是在这个网址: http://mydomain.com/subfolder/folder/
That was originally at this url : http://mydomain.com/subfolder/folder/
如何解决的路径问题 ../ 在 http://subdomain.mydomain.com/
How would I fix pathing issues for ../ on https://p.xsw88.cn/allimgs/daicuo/20230902/717.png.jpg并将其设置为我的login.html文件的背景,所以我们看到,我们的HTML文件在主目录 而且我们的css文件夹是主目录
ca_grain_texture.jpg and set it as a background of my login.html file so we see that our html files are in the main directory and also our css folder is in main directory
所以,如果我想抓住从我的login.css文件中粮JPG文件。我所要做的财产以后这样的。
so if i want to grab the grain jpg file from my login.css file. I have to do somthing like this.
例如
body{
background-image: url(../../../images/cs_grain_texture.jpg);
}
写作../每次它会跳到一个文件夹回到类似于CD /在命令行shell。
on writing ../ everytime it will jump one folder back similar to cd/ in command shell.
../意味着它会去loginCSS文件夹。
../ means it will go to loginCSS folder.
../../意味着风格的文件夹。
../../ means style folder.
../../../意味着CSS这是主目录。
../../../ means css which is the main directory.
我希望它有助于理解我理解这种方式,并希望它会清除你的看法。
I hope it helps understanding I understood this way and hope it clears your view.
相关推荐
最新文章