在我的HTML <head>
的ID,我已經定義了以下<base>
:基本href至/ - 現在HREF不工作
<base href="/" target="_blank">
現在我不能鏈接到標籤與標識在同一頁上,如:
<sup id="ref1" name="ref1"><a href="#fn1" target="_top">1</a></sup>
<p class="footnote" id="fn1" name="fn1">
<a href="#ref1" title="back" target="_top">↩</a>
</p>
指向ID的鏈接將我帶回根目錄,而不是指定的ID。我可以以某種方式強制<a>
元素在當前文檔中查找ID,而不必刪除<base>
中的href="/"
?
可能的複製[請錨鏈接指當前頁面時使用 ](http://stackoverflow.com/questions/8108836/make-anchor-links-refer-to-the-current-page-when-using-base) –
arcyqwerty