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

前端 未结 7 1897
予麋鹿
予麋鹿 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:03

    In MVC 5 you can use

        @Html.TextAreaFor(model => model.body, 5, 50,  new { @class = "form-control" } )
    

    Works nicely!

提交回复
热议问题