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

在mvc中

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

等于

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

  

posted @ 2014-05-06 15:31  一夜秋2014  Views(364)  Comments(0Edit  收藏  举报