[英]URL from one page to another page + region
我有一个带有主标题的页面,需要从第二个页面回到“索引”到某个区域。 这将使我进入页面,但似乎无法进入#about区域。
<a runat="server" href="~Index.aspx" class="smoothScroll">
About
</a>
首先,您应该为about区域指定一个ID,然后链接到该页面,并在其末尾添加#(我们的ID),如下所示:
<div id="about"></div>
并在您的链接中:
<a runat="server" href="~/Index.aspx#about" class="smoothScroll">
About
</a>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.