gpt4 book ai didi

asp.net-mvc - 如何将类/id 属性添加到 html.beginumbracoform

转载 作者:太空宇宙 更新时间:2023-11-04 03:12:40 27 4
gpt4 key购买 nike

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

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

最佳答案

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

它对类(class)有用

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

或者任何你想要的。

关于asp.net-mvc - 如何将类/id 属性添加到 html.beginumbracoform,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29276557/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com