How do I set the width and height of a textarea using CSS?

前端 未结 6 439
夕颜
夕颜 2021-01-17 07:42

Here is my css:

.editor-field textarea {
    width : 400;
    height : 100px;
}

Here is the markup from my view:

        &l         


        
6条回答
  •  清歌不尽
    2021-01-17 08:39

    ASP MVC default project has site.css with max-width:280 for textarea -- remove that and try something like this

    @Html.TextAreaFor(model => model.ComicText, new { style = "width: 700px; height:150px;" }) 
    

提交回复
热议问题