如何在asp.net mvc中使用ActionLink中的类?

问题描述 投票:-1回答:1

这里上面是html,而下面是asp.net,但是我没有从上面给出的下线输出。

上线的输出是第一个,下线的输出是第二个。

为什么我没有得到所需的输出?

c# asp.net asp.net-mvc html.actionlink
1个回答
0
投票

你可以试试这个

<li>@Html.ActionLink("Basic Information", "Index", "EditProfile", new { }, new { @class = "active icon ion-ios-information-outline" })</li>
© www.soinside.com 2019 - 2024. All rights reserved.