我尝试将HTML标签转换为@ Html.ActionLink
<a href="@Url.Action("Login","Signup")" class="button_container header_button ml-auto" data-toggle="modal"><div style="float:right;" class="button text-center"><span>Login</span></div></a>
@Html.ActionLink("Login", "Login", "Signup", null, new { @class = "button_container header_button ml-auto" })<div style="float:right;" class="button text-center"></div>