如何将类/ id属性添加到html.beginumbracoform

时间:2015-03-26 10:49:29

标签: asp.net-mvc css3 umbraco umbraco7 html.beginform

我一直在尝试为我的BeginUmbracoForm添加css样式,但我的CSS文件找不到UmbracoForm给出的类名?有什么答案吗?

using (Html.BeginUmbracoForm<UmbRegisterController>("HandleRegisterMember", null, new { @class = "RegisterForm" }))

1 个答案:

答案 0 :(得分:2)

@using (Html.BeginUmbracoForm("Action", "Surface", null, new Dictionary<string, object> { { "id", "YourId" } }))

适合上课

@using (Html.BeginUmbracoForm("Action", "Surface", null, new Dictionary<string, object> { { "id", "YourId" }, { "class" , "YourClass" } }))

或者你想要的更多。