gpt4 book ai didi

php - 链接不引用 anchor

转载 作者:搜寻专家 更新时间:2023-10-31 21:26:59 28 4
gpt4 key购买 nike

我有一个不重定向到 anchor 的链接:

 while($nextLine != false){
# echo link
echo '<a href="#peak1">'.$nextLine.'</a>';
# update line
$nextLine=fgets($entireFile , filesize("Khagay Nanoproject/peaks.txt"));
# skip a line (for proper formatting)
echo '<br>';
}
echo '
<section>
<details>
<summary> Peak Image </summary>';
# create a bookmark with the id attribute. Used to link from Peak Table rows
echo '<h2 id="peak1">Peak 1</h2>';

这是命令的顺序。是范围原因还是 anchor 在链接之后?

最佳答案

原因是页面不够长。当我添加了一堆

<br> 

我可以看到链接和 anchor 工作正常。

关于php - 链接不引用 anchor ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34568967/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com