当前位置: 动力学知识库 > 问答 > 编程问答 >

.net - How make anchor navigation list with asp mvc

问题描述:

On my page there are a lot of records. It is a requirement for them to be displayed on a single place. But to make it easier to navigate we will add an index div that points anchors to some category.

For example we have category A B C D E and under a category there are products of that category

How do you make in ASP.NET MVC (anchor) link that point to the category div?

网友答案:

You could use named anchors:

<a href="#categoryA">Jump to category A products</a>

and somewhere else on the same page:

<div>
    <a name="categoryA">Category A products</a>
    ... some products here
</div>

The jQuery UI accordion is also worth checking out.

分享给朋友:
您可能感兴趣的文章:
随机阅读: