mvc前端样式自定义

1、别忘记加 htmlAttributes 

@Html.EditorFor(model => model.Quantity, new { htmlAttributes = new { @class = "form-control", @style = "width:50px;" } })

posted on 2016-11-17 11:17  tongdengquan  阅读(133)  评论(0)    收藏  举报