如何在mvc asp .net中的editorFor html helper中添加类 [英] How to add class in editorFor html helper in mvc asp .net
本文介绍了如何在mvc asp .net中的editorFor html helper中添加类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在编辑器中添加类在mvc asp .net中的html帮助器
解决方案
类名应该作为html集合参数之一传递。
@ Html.EditorFor(x => x.Created,new {@class =date} )
How to add class in editorFor html helper in mvc asp .net
解决方案
the class name should be passed as one of the html collection parameter.
@Html.EditorFor(x => x.Created, new { @class = "date" })
这篇关于如何在mvc asp .net中的editorFor html helper中添加类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文