如何将class/id属性添加到html.beginubracoform



我一直试图将css样式添加到我的BeginUmbracoForm中,但我的css文件找不到我给UmbracoForm的类名?有答案吗?

using (Html.BeginUmbracoForm<UmbRegisterController>("HandleRegisterMember", null, new { @class = "RegisterForm" }))
@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" } }))

或者任何你想要的东西。

相关内容

  • 没有找到相关文章

最新更新