@Html.EditorFor(model => model.mobileNum, new { @class = "mpn" })
想给这句话加上自定义的class,但是怎么也显示不出
始终显示这样的效果:
<input class="text-box single-line" data-val="true" data-val-length="手机号不多于20字符" data-val-length-max="20" data-val-remote="用户账号已存在" data-val-remote-additionalfields="*.mobileNum" data-val-remote-url="/Test/CheckMobileExists" id="mobileNum" name="mobileNum" type="text" value="" />
如何加上自定义的样式,请高手指教!
慕盖茨4494581
摇曳的蔷薇