【发布时间】:2016-03-24 14:15:56
【问题描述】:
在asp.net mvc 4开发中,我写了如下代码:
@Html.EditorFor(model =>model.CreateTime,new {@class="form-control"}).
@Html.EditorFor(model =>model.CreateTime,null,new {@class="form-control"})
这两种方法都不行!当我检查生成的 html 代码时,类元素没有出现。
但是当我写这些代码时,就很好了:
@Html.LabelFor(model =>model.CreateTime,new {@class="form-control"})
那么告诉我该怎么做?
【问题讨论】:
标签: asp.net-mvc-4