我尝试将锚标记与包含的内容一起使用。在我的 Index.php 上,我有一个带有一些锚标记的小“导航栏”。我还在我的代码中包含了文件“text.php”。该文件位于文件夹“texte”中。锚标记应该将用户带到 text.php 中的位置,但它只加载 404 - 找不到页面。
我如何包含文件:
<?php include 'texte/text.php'; ?>
我这样声明我的“起始词”:
<a href=“texte/text.php#InfoAnker“>Informationen</a>
我的锚是这样的:
<h2 id="InfoAnker"> Informationen </h2>
<a href=“#InfoAnker“>Informationen</a>
由于包含,我也尝试过,但结果相同。
有任何想法吗?
大话西游666
长风秋雁