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>

  • 相关阅读:
    sock编程
    Exceptional c++
    sort
    实现UDP高效接收/响应
    Iterator invalidation(迭代器失效)
    php 判断一个点是否在一个多边形区域内
    PHP 如何在txt里查找包含某个字符串的那一行?
    php 实现栈与队列
    微信支付 接口
    文章添加,删除,修改,分页列表
  • 原文地址:https://www.cnblogs.com/melao2006/p/4989340.html
Copyright © 2011-2022 走看看