红色表示可选参数。
@Html.Label("name", "value", new { @class = "class", @style = "color:Red;" })
value
@Html.TextBox("name", "value", new { @class = "txt", @style = "width:200px;" })
@Html.TextArea("name", "value", new { @class = "txt", @rows = "4", @cols = "10" })
value
@Html.RadioButton("name", "value1", true, new { @class = "xx" })
@Html.RadioButton("name", "value2")
@Html.CheckBox("name", true, new { @class = "cc" })
原文:http://www.cnblogs.com/yaosuc/p/4535383.html