首页 > 代码库 > bootstrap26-表单控件大小

bootstrap26-表单控件大小

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<title>表单控件大小</title>

<link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">  

</head>

<body>

<div class="container">

<form action="" role="form" class="form-horizontal">

<div class="form-group">

<input class="form-control input-lg" type="text" placeholder=".input-lg">

</div>


<div class="form-group">

    <input class="form-control" type="text" placeholder="默认输入">

  </div>


  <div class="form-group">

    <input class="form-control input-sm" type="text" placeholder=".input-sm">

  </div>


  <div class="form-group"></div>


  <div class="form-group">

    <select class="form-control input-lg">

      <option value="">.input-lg1</option>

      <option value="">.input-lg2</option>

      <option value="">.input-lg3</option>

    </select>

  </div>


  <div class="form-group">

    <select class="form-control">

      <option value="">默认选择1</option>

      <option value="">默认选择2</option>

      <option value="">默认选择3</option>

    </select>

  </div>


  <div class="form-group">

    <select class="form-control input-sm">

      <option value="">.input-sm1</option>

      <option value="">.input-sm2</option>

      <option value="">.input-sm3</option>

    </select>

  </div>


  <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 class="col-lg-5">

      <input type="text" class="form-control" placeholder=".col-lg-5">

   </div>

   <div class="col-lg-6">

      <input type="text" class="form-control" placeholder=".col-lg-6">

   </div>

   <div class="col-lg-7">

      <input type="text" class="form-control" placeholder=".col-lg-7">

   </div>

   <div class="col-lg-8">

      <input type="text" class="form-control" placeholder=".col-lg-8">

   </div>

   <div class="col-lg-9">

      <input type="text" class="form-control" placeholder=".col-lg-9">

   </div>

   <div class="col-lg-10">

      <input type="text" class="form-control" placeholder=".col-lg-10">

   </div>

</div>

</form>

</div>

    <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>

  <script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>

</body>

</html>


本文出自 “素颜” 博客,请务必保留此出处http://suyanzhu.blog.51cto.com/8050189/1895728

bootstrap26-表单控件大小