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>

  • 相关阅读:
    JZOJ 5870 地图
    20190921
    20190919
    SP703 SERVICE
    UVA323 Jury Compromise
    [note]一类位运算求最值问题
    [BZOJ3674]可持久化并查集
    [luogu3359]改造异或树
    [luogu4755]Beautiful Pair
    [BJWC2012]冻结
  • 原文地址:https://www.cnblogs.com/melao2006/p/4989340.html
Copyright © 2011-2022 走看看