• 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>

  • 相关阅读:
    学生管理系统代写
    学生竞赛评价系统
    《划时代51单片机C语言全新教程》前言
    《划时代51单片机C语言全新教程》第三章 开发环境 概览
    校验和
    NBOOT分析-S3C244xInit.s(1)
    《划时代51单片机C语言全新教程》第一章 8051简介 概览
    《划时代51单片机C语言全新教程》第二章 STC89C52RC 处理器 概览
    ARM9中断调试(1)
    NBOOT分析-NBOOT.c(2)
  • 原文地址:https://www.cnblogs.com/melao2006/p/4989340.html
Copyright © 2020-2023  润新知