<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<base href="http://127.0.0.1/web">
</head>
你还可以在头文件中设置基础路径
那么你在下面使用的链接都将以它为准除了绝对路径。
如:如果使用<img scr=path/f.jpg>那么实质上是:<img scr=http://127.0.0.1/web/path/f.jpg>
但是如果你使用<img scr=http://192.168.8.1/web/path/f.jpg>则不受其影响

 

 

转载自:http://bbs.csdn.net/topics/40264551

相关文章:

  • 2021-07-24
  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
  • 2021-12-02
  • 2021-08-21
  • 2021-07-31
  • 2022-01-25
猜你喜欢
  • 2021-12-08
  • 2021-10-30
  • 2022-12-23
  • 2022-12-23
  • 2022-01-09
  • 2021-05-22
相关资源
相似解决方案