首页 > 代码库 > HtmlHelp

HtmlHelp

@Html.Label("Label", "Label") @*渲染成<label for="Label">Label</label>*@
@Html.Hidden("Hidden","Hidden") @*渲染成 <input id="id" name="id" type="hidden" value="http://www.mamicode.com/2669-0" />*@
@Html.TextBox("TextBox", "TextBox", new { color="red",font="2",size="3" }) @*渲染成<input id="TextBox" name="TextBox" type="text" value="http://www.mamicode.com/TextBox" />*@
@Html.TextArea("TextArea", "TextArea", new { color="black",size="3"}) @*渲染成<textarea cols="20" id="TextArea" name="TextArea" rows="2">TextArea</textarea>*@
@Html.Editor("Editor", "Editor", new { color="yellow",size="3"}) @*渲染成<input class="text-box single-line" id="Editor" name="Editor" type="text" value="" />*@
@Html.Password("PassWord", "PassWord", new { color="yellow",size="3"}) @*渲染成<input id="PassWord" name="PassWord" type="password" value="http://www.mamicode.com/PassWord" />*@


@Html.Raw("<div>hello word</div>") @*输出hello word//*@