我一直在尝试为我的BeginUmbracoForm
添加css样式,但我的CSS文件找不到UmbracoForm
给出的类名?有什么答案吗?
using (Html.BeginUmbracoForm<UmbRegisterController>("HandleRegisterMember", null, new { @class = "RegisterForm" }))
答案 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" } }))
或者你想要的更多。