MVC中Html.EditorFor宽度及高度怎么设定

2025-03-20 20:41:14
推荐回答(1个)
回答1:

C# code<%= Html.EditorFor(model => model.Content, new { width="200px",height="150px"})%>
添加自定义样式@Html.Label(Model.StoreMoney.ToString(),new {@class="balanceValue"})添加属性@Html.Label(Model.StoreMoney.ToString(),new {@style="width:30px;"})