我仔细检查网址,我认为它们还可以。
实时网址是greencleansteamwash.com
锚点链接是福利,服务和约会
我的代码是这样的
<section id="benefits">
Content of benefits
</section>
<section id="plans">
Content of plans
</section>
<div id="book">
Content of booking
</section>
<ul class="nav-offcanvas">
<li><a href="http://greencleansteamwash.com/index.php#benefits">Benefits</a></li>
<li><a href="http://greencleansteamwash.com/index.php#plans">Services</a></li>
<li><a href="http://greencleansteamwash.com/index.php#book">Appointments</a></li>
</ul>
答案 0 :(得分:1)
从链接中删除整个网址,只需离开#part。
<li><a href="#benefits">Benefits</a></li>
<li><a href="#plans">Services</a></li>
<li><a href="#book">Appointments</a></li>