代码改变世界

mvc @html.editor怎么修改宽度 和其他属性

2014-05-21 18:07  P.C ++  阅读(298)  评论(0编辑  收藏  举报

<style type="text/css"> #dob { width:6em; } </style> @using (Html.BeginForm()) { Enter date: @Html.EditorFor(m => m.DateOfBirth, null, "dob", null) }

 http://www.bbsmvc.com/mvclearn/thread-363-1-1.html