加入收藏 | 设为首页 | 会员中心 | 我要投稿 安卓应用网 (https://www.0791zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net-mvc – 如何在@ Html.TextBox mvc4中添加新的css类

发布时间:2020-05-24 00:03:08 所属栏目:asp.Net 来源:互联网
导读:我使用以下代码添加css类与@ Html.TextBox,但这只适用于@ Html.TextBoxFor而不是@ Html.TextBox. @Html.TextBox(ticket_new_attachment_attributes_0_description, new { @class= bigfield}) 我失踪了什么 尝试这个 @Html.TextBox(ticket_new_

我使用以下代码添加css类与@ Html.TextBox,但这只适用于@ Html.TextBoxFor而不是@ Html.TextBox.

@Html.TextBox("ticket_new_attachment_attributes_0_description",new { @class= "bigfield"})

我失踪了什么

解决方法

尝试这个
@Html.TextBox("ticket_new_attachment_attributes_0_description",null,new { @class= "bigfield"})

(编辑:安卓应用网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读