How can I change the size of a multi-line editor-field?

前端 未结 7 1896
予麋鹿
予麋鹿 2021-01-04 00:32

I\'m working on an MVC project using C#. Right now, I\'m trying to customize my views a little, and I\'d like to make the text boxes bigger.

I followed the suggesti

相关标签:
7条回答
  • 2021-01-04 01:11

    I just wanna share in mvc 5

      @Html.EditorFor(model => model.Body, 
                      new {htmlAttributes = new {@style="width:yourdesiredwidth;"}
                       })
    

    or use a custom class

    0 讨论(0)
提交回复
热议问题