I have tried googling but all of the links I find are about linking resources, for example images with ../
, Might be an easy question to solve - but internet searches aren't helpful...<a href=""> root of folder rather than index.html
Say I have the folder "html" of which my webserver would use as the root, within that folder is index.html, page.html and page2.html, when linking something I'd usually do: <a href="index.html">Home</a>
but is there a way to link the root, so you get demos/
rather than demos/index.html
.
您是否嘗試過'HREF =「/」'根的符號? –
@ŠimeVidas是的,它將它發送回根文件夾,而不是Web服務器的根目錄 – user3352340