zoukankan      html  css  js  c++  java
  • Bootstrap历练实例:表单控件大小

    表单控件大小

    您可以分别使用 class .input-lg 和 .col-lg-* 来设置表单的高度和宽度。

    实例:

    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>Bootstrap历练实例:表单控件大小</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0" />
    <link rel="stylesheet" href="bootstrap-3.3.5-dist/css/bootstrap.min.css" />
    </head>
    <body>
    <div class="container">
    <form class="form-horizontal" role="form">
    <div class="form-group">
    <input type="text" class="form-control input-lg" placeholder=".input-lg" />
    </div>
    <div class="form-group">
    <input type="text" class="form-control" placeholder="默认输入"/>
    </div>
    <div class="form-group">
    <input type="text" class="form-control input-sm" />
    </div>
    <div class="form-group"></div>
    <div class="form-group">
    <select class="form-control input-lg">
    <option>.input-lg</option>
    </select>
    </div>
    <div class="form-group">
    <select class="form-control">
    <option>默认大小</option>
    </select>
    </div>
    <div class="form-group">
    <select class="form-control input-sm">
    <option>.input-sm</option>
    </select>
    </div>
    <div class="form-group">
    <div class="row">
    <div class="col-lg-2">
    <input type="text" class="form-control" placeholder=".col-lg-2" />
    </div>
    <div class="col-lg-3">
    <input type="text" class="form-control" placeholder=".col-lg-3" />
    </div>
    <div class="col-lg-4">
    <input type="text" class="form-control" placeholder=".col-lg-4" />
    </div>
    </div>
    </div>
    </form>
    </div>

    <script src="jQuery/jquery-2.1.4.js"></script>
    <script src="bootstrap-3.3.5-dist/js/bootstrap.min.js"></script>
    </body>
    </html>

  • 相关阅读:
    Json对象和字符串互转
    JSNOP调用。。。
    org.hibernate.LazyInitializationException: could not initialize proxy no Session
    myeclipse生成注解实体
    jquery判断浏览器和版本
    JSTL XML标签库
    ORACLE 月份不全,补全月份的sql
    js 上下左右键控制焦点
    google gson使用
    js判断undefined类型
  • 原文地址:https://www.cnblogs.com/melao2006/p/4989340.html
Copyright © 2011-2022 走看看