2015-06-07 37 views
0

我在URL的html页面:http://localhost:63343/x/html_pages/http_failures_table/http_failures_table_agg_bl.html我怎样才能让HREF到上一级目录上去

href

<a href="../http_failures_dict/http_failures_dict_bl_0.txt">

但是当我点击链接我直接联系:

http://localhost:63343/x/html_pages/http_failures_dict/http_failures_dict_bl_0.txt

,而不是

http://localhost:63343/x/http_failures_dict/http_failures_dict_bl_0.txt

我该如何解决这个问题?

回答

0

你可以回去目录级别,而不是一个:

<a href="../../http_failures_dict/http_failures_dict_bl_0.txt"> 

或从开始:

<a href="/x/http_failures_dict/http_failures_dict_bl_0.txt">