Html.EditorFor样式
@Html.EditorFor(b => b.change_file, new { htmlAttributes = new { @style = "width:80%" } })
Html.TextBoxFor样式
@Html.TextBoxFor(b => b.change_reason, null, new { @style = "width:100%" })
TextBoxFor要注意中间的null一定要加的,这个是给textbox赋值了,后面才是设置样式
Html.TextAreaFor样式
@Html.TextAreaFor(b => b.change_type, new { @style = "width:100%;height:50px;border-radius:5px;" })