zoukankan      html  css  js  c++  java
  • 2016 系统设计第一期 (档案一)MVC 相关控件整理

    说明:前者是MVC,后者是boostrap

    1.form 表单

    @using (Html.BeginForm("Create", "User", FormMethod.Post, new { @class = "form-horizontal" }))
    {}

    2. 文本框

     @Html.TextBox("LoginName", "", new { @class = "form-control", placeholder = "请输入账号" })

    <input type="text" class="form-control" id="LoginName" placeholder="请输入QQ">

    3.隐藏控件

      @Html.Hidden("UserId");

      <input type="hidden" id="UserId" value="" />

    4.单选控件

    <div class="col-md-4"> 
    <label class="checkbox-inline">
    @Html.RadioButton("Gender", 1, new { @id = "radio1", @name = "Gender" })男
    </label>
    <label class="checkbox-inline">
    @Html.RadioButton("Gender", 0, new { @id = "radio0", @name = "Gender" })女
    </label>
    </div>
    <div class="col-md-4">
    <label class="checkbox-inline">
    <input type="radio" name="optionsRadiosinline" id="optionsRadios3"
    value="option1" checked></label>
    <label class="checkbox-inline">
    <input type="radio" name="optionsRadiosinline" id="optionsRadios4"
    value="option2"></label> 
    </div>
  • 相关阅读:
    何为 ISAPI
    MacDown-The open source Markdown editor for OS X.
    Atom使用
    运维
    Perl
    Kaggle
    J2EE
    leetcode
    Tensorflow 学习笔记
    EXCEL公式及宏
  • 原文地址:https://www.cnblogs.com/foreverfendou/p/5137435.html
Copyright © 2011-2022 走看看