asp.net – 使用Html.TextBox添加css类

asp.net – 使用Html.TextBox添加css类

试图添加’class’html属性,但我认为关键字’class’会导致问题. %: Html.TextBox(name, value, new {class: required })% 有解决方法吗? 只需在’class’前加上’@’,因为它是 reserved keyword. %: Html.TextBox(name, value, new { @class:

联系我们

联系我们

0577-28828765

在线咨询: QQ交谈

邮箱: xwei067@foxmail.com

工作时间:周一至周五,9:00-17:30,节假日休息

返回顶部