2017-12-25 11 views
-1

여기 upper line은 html로, lower는 asp.net에 있지만 upper가 제공하는 것처럼 낮은 라인에서 출력을 얻지는 못한다.asp.net mvc에서 ActionLink 클래스를 사용하는 방법?

상부 라인 출력은 첫 번째 및 하부 라인의 출력은 두 번째이다.

이유는 원하는 출력을받지는 무엇입니까?

+0

https://stackoverflow.com/questions/18643457/how-do-i-add-a-class-to-an-html-actionlink –

+3

가능한 복제를 시도 할 수 있습니다 [ @ Html.ActionLink에 클래스를 추가하려면 어떻게해야하나요?] (https://stackoverflow.com/questions/18643457/how-do-i-add-a-class-to-an-html-actionlink) – DaImTo

+0

URL을 사용하십시오. 앵커를위한 .content –

답변

0

당신은이

<li>@Html.ActionLink("Basic Information", "Index", "EditProfile", new { }, new { @class = "active icon ion-ios-information-outline" })</li>