0
"htmlAttributes"및 "routeValues"(템플릿의 일부로 필요한 것 같군요 ??) 아래의 링크를 추가하는 방법html.action. 클래스 추가 및 routevalues 및 htmlattributes
<li>@Html.ActionLink("Register", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink" })</li>
가 나는 행운으로 다음과 같은 시도 :
<li>@Html.ActionLink("Register", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink" }. new { @class = "btn navbar-btn js-login-btn" })</li>
, 덕분에 작동합니다 – Gavin5511