开发者

How make anchor navigation list with asp mvc

开发者 https://www.devze.com 2023-03-05 23:55 出处:网络
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.

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 prod开发者_如何学JAVAucts 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消