在此处输入图片描述 我正在尝试在各种文件之间进行链接,以便能够来回跳转以进行导航。我正在尝试从 index.html 转到 ConversionsPage.html,我可以这样做。但是,从 ConversionsPage.html 我无法访问同一文件夹中的任何其他页面或返回到 index.html
<a href="Pages/ConversionsPage.html" >Assignment Number 1 </br> is what i
used to get to the conversions page. From the conversions page i am trying
to go to ConvertFahrenheitToCelsius.html and then from there have a return
to the main conversions page.
<a href="Pages/ConversionsPage.html" >Return to Conversions Page</br>
我不断收到错误消息,提示未找到或未删除。 """""""
最佳答案
问题是您的 href 没有正确说明文件夹结构。您只需要从 Pages 中的文件之间的 hrefs 中删除该目录即可。
例如,在 ConversionsPage.html 中
<a href="ConvertGallonsToLiters.html">Gallons to Liters</a>
关于html - 通过 href 相互链接本地文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52283766/