我在网站上遇到问题我已经建立了一个问题,我已经将锚点放到了关于页面中的位置,并且在侧边菜单上有一个ID,但直接从家里出发页面或任何不是'关于'的页面页面加载时,它会跳回到顶部。我怎么能阻止这个? 该网站是https://www.yogawithluc.com 您可以通过转到主页打开菜单并单击关于页面子菜单中的任何链接来重新创建问题。
<!-- menu -->
<div id="">
<div class="list-group">
<a href="../" class="list-group-item">Home</a>
<a href="#dropdown1" class="list-group-item" data-toggle="collapse"></span>
About <span class="caret"></a>
<div class="collapse" id="dropdown1">
<a href="about.php" class="list-group-item">About</h6><hr>
<a href="about.php#practice" class="list-group-item">Practice</a>
<a href="about.php#guru" class="list-group-item">Guru</a>
<a href="about.php#luc" class="list-group-item">Luc</a>
</div>
<a href="portfolio.php">Portfolio</a>
<a href="#footer-bgd" class="list-group-item scroll">Contact Me</a>
<a href="#dropdown2" class="list-group-item" data-toggle="collapse"></span>
Resources <span class="caret"></a>
<div class="collapse" id="dropdown2">
<a href="moondays.php" class="list-group-item">Moon Days</a>
<a href="friends.php" class="list-group-item">Friends & Recommended Links</a>
<a href="reading.php" class="list-group-item">Reading List</a>
</div>
</div>
<!-- //menu -->