htmlurl路径怎么写

1.HTML相对路径怎么写HTML写相对路径的代码:
<html>
<body>
<center>
小说
<p><a href="http://www.xuexi88.com/jinyong/sd.html">;《射雕英雄传》</a>
<a href="http://www.xuexi88.com/gulong/scj.html">;《长生剑》</a></p>
</p></body>
</html>
相对index.html所有的目录而言:
“../”表示上一级目录开始
“./”表示当前同级目录开始
“/”表示根目录开始 。
扩展资料
建一个源文件info.html,在info.html里要引用index.html文件作为超链接 。
表示源文件所在目录的上一级目录,
假设info.html路径是:c:\Inetpub\ww wroot\sites\blabla\info.htm l
假设index.html路径是:c:\Inetpub\pub\站点,名字是site
则你的站点访问路径是http://localhost/site/
以你的目录结构为例,你的css可以这样写
background:url(./image/leaf.jpg)等价于background:url(image/leaf.jpg)
或者
background:url(/site/App_Themes/image/leaf.jpg)
或者
background:url(http://localhost/site/App_Themes/image/leaf.jpg)
~在css里不支持,假设支持的话,就是
background:url(~/App_Themes/image/leaf.jpg)
【htmlurl路径怎么写】

htmlurl路径怎么写

文章插图