How to set the width of the text box when using Html.TextBoxFor

后端 未结 6 1280
走了就别回头了
走了就别回头了 2021-02-01 02:20

I have the following line in my view:

<%= Html.TextBoxFor(m => m.Description)%>
6条回答
  •  佛祖请我去吃肉
    2021-02-01 02:55

    To me it worked by adding the "input" in the CSS for @Html.TextBoxFor:

    CSS:

    .campoTexto input {
        width: 50px;
    }
    

    For:

    @Html.TextBoxFor(model => model.nombre)

提交回复
热议问题