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

前端 未结 6 375
夕颜
夕颜 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:27

    style can be specified in the link will

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

提交回复
热议问题