我是一名为我小组的STEAM Tank项目制作应用程序的学生。我不知道如何在chrome-dev工具中使按钮链接转到另一个HTML文件。我正在使用index.html文件制作标题页。这是我的代码:
<img src="2icon_128.png" alt="Tardy Time logo" width="400" id="tardy-time-logo">
<h1 id="tardy-time-heading">Tardy Time</h1>
<h2 class="tardy-time-slogan"><strong><em>If you can't beat Tardy Time, Join Tardy Time</em></strong></h2>
<div class="header">
<span class="title-btn"><a target="_blank" href="file:///home/chronos/u-e6b8f2a6cde1e9636abef34ef65d593e08bdd9e8/MyFiles/Downloads/Tardy-Time-App/beginning.html" class="title-btn">Let's Start</a></span>
</div>
我需要进入一个名为Beginning.html的文件,该文件位于同一文件夹“ Tardy-Time-App”中。我收到的错误是不允许加载本地资源错误。我正在使用chrome devtools。
您是否在相同文件夹中,只需像这样传递文件名:
<a target="_blank" href="beginning.html" class="title-btn">Let's Start</a>
因此您不需要传递文件的绝对路径