MVC4怎么设置@Html.TextBox这样的输入框的css样式

在mvc中

@Html.TextBox("txtCode","",new {@class="code",style="101px;;height:28px;background-color:#fff"})

等于

<input id="txtCode" name="txtCode" class="code" style="101px;;height:28px;background-color:#fff" type="text" value="" />

  

原文地址:https://www.cnblogs.com/qk2014/p/3711672.html