-1
如何在MVC上爲checkBoxFor添加Css樣式?如何在MVC上爲CheckBoxFor添加css
這是我的看法
@Html.CheckBoxFor(m =>
Model.CategoryList.Categories[i].IsCheck)
@Model.CategoryList.Categories[i].SelectedCategoryName;
@Html.HiddenFor(m =>
Model.CategoryList.Categories[i].SelectedCategoryID);
@Html.HiddenFor(m => Model.CategoryList.Categories[i].SelectedCategoryName);
@ Html.CheckBoxFor(M => Model.CategoryList.Categories [I] .IsCheck,新的{@class = 「yourcss」}) – DanielVorph