mvc前端样式自定义时间:2023-03-09 14:28:08 1、别忘记加 htmlAttributes @Html.EditorFor(model => model.Quantity, new { htmlAttributes = new { @class = "form-control", @style = "width:50px;" } })