我在哪里设置MVC4中登录表单的宽度和高度(以及其他调整)? 我正在创建一个在移动设备上运行良好的Web应用程序,无需任何其他更改,但我需要调整登录表单。 我看过css,jqueryui。对话框,以及cshtml。
答案 0 :(得分:1)
在_LoginPartial.cshtml
中为登录和注册添加另一个属性ActionLink
。
例如,将宽度设置为400
,并将此属性添加到链接:data_dialog_width = "400"
结果:
<li>@Html.ActionLink("Register", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink", data_dialog_title = "Registration", data_dialog_width = "400" })</li>
<li>@Html.ActionLink("Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink", data_dialog_title = "Identification", data_dialog_width = "400" })</li>