我怎样才能使上层目录的 href 上升
how can i make href to upper directory go up
我在 url 中有一个 html 页面:http://localhost:63343/x/html_pages/http_failures_table/http_failures_table_agg_bl.html
与 href
:
<a href="../http_failures_dict/http_failures_dict_bl_0.txt">
但是当我点击 url 时,我被引导至:
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
我该如何解决这个问题?
您可以返回 两个 目录级别而不是一个:
<a href="../../http_failures_dict/http_failures_dict_bl_0.txt">
或者从root开始:
<a href="/x/http_failures_dict/http_failures_dict_bl_0.txt">
我在 url 中有一个 html 页面:http://localhost:63343/x/html_pages/http_failures_table/http_failures_table_agg_bl.html
与 href
:
<a href="../http_failures_dict/http_failures_dict_bl_0.txt">
但是当我点击 url 时,我被引导至:
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
我该如何解决这个问题?
您可以返回 两个 目录级别而不是一个:
<a href="../../http_failures_dict/http_failures_dict_bl_0.txt">
或者从root开始:
<a href="/x/http_failures_dict/http_failures_dict_bl_0.txt">