2017-02-22 1 views

답변

0

당신은 action linkspan을 넣어 spanicon class을 할당 할 수 있습니다.

@Html.ActionLink("logout", "Login", "Account", null, new{Id="loginLink" }) 
<span class="glyphicon glyphicon-log-out"></span> 
+0

감사합니다. 링크가 분리되어있는 아이콘에 문제가 있습니다. –

0

대신 URL 도우미를 사용

<a href="@Url.Action("Login", "Account")">logout <i class="glyphicon glyphicon-log-out"></i></a> 
+0

고마워, Christian Gollhardt. 잘 작동합니다. –

+0

@MahammadMoine 의견을 보내 주셔서 감사합니다. 내 대답을 받아들이면 자유롭게 느껴보세요 :) –

0

이 내 응용 프로그램입니다.

<a [email protected]("ActionName", "ControllerName")>Add<i class="fa fa-plus-square-o"></i></a> 

희망 작품 !!

+0

고마워. 이것은 잘 작동합니다. –

+0

@MahammadMoine 항상 환영합니다 :) –

관련 문제