html - 通过 href 相互链接本地文件

标签 html css

在此处输入图片描述 enter image description here enter image description here 我正在尝试在各种文件之间进行链接,以便能够来回跳转以进行导航。我正在尝试从 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/

相关文章:

html - 如何允许用户通过键盘切换并选择带有可见标签的不可见复选框?

html - Bootstrap 4 边界实用程序

css - 范围 slider 端点在 Firefox 中被切断

html - CSS 进度跟踪器未填满

html - 断字 : break-all; - what's to replace with?

html - Bootstrap 行自定义高度百分比

html - WordPress首页结构

javascript - 将 '' 登录发布主题按钮更改为登录链接按钮

twitter-bootstrap - 让 Bootstrap 列跨越到另一行

css - ios 13 CSS 设置-webkit-overflow-scrolling : auto cannot work