Bootstrap

Bootstrap 是叁个用于飞速支付 Web 应用程序和网址的前端框架。Bootstrap 是基于 HTML、CSS、JAVASCXC90IPT 的。

Bootstrap(一),Bootstrap(

Bootstrap 是最受接待的 HTML、CSS 和 JS 框架,用于开拓响应式布局、移动设备优先的 WEB 项目。

运用以为简约大气便捷,扁平化设计。好些个众多CSS、JS....总有你心仪的那一款!喜欢就上官方网址找,这里更充分呦!

<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
    <title>Bootstrap 101 Template</title>

    <!-- Bootstrap -->
    <link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.min.css">

  </head>
  <body>
      <h3>导航栏</h3>
    <nav class="navbar navbar-inverse navbar-fixed-top">
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
            <li class="active"><a href="#">Home</a></li>
            <li><a href="#about">About</a></li>
            <li><a href="#contact">Contact</a></li>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Dropdown </a>
              <ul class="dropdown-menu" role="menu">
                <li><a href="#">Action</a></li>
                <li><a href="#">Another action</a></li>
                <li class="divider"></li>
                <li class="dropdown-header">Nav header</li>
                <li><a href="#">Separated link</a></li>
              </ul>
            </li>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </nav>
    <h1>你好,bootstrap!</h1>
     <h3>图标</h3>   
    <br>







    <h3>按钮</h3>
    <button type="button" class="btn btn-default">按钮</button>
    <button type="button" class="btn btn-primary">primary</button>
    <button type="button" class="btn btn-success">success</button>
    <button type="button" class="btn btn-info">info</button>
    <button type="button" class="btn btn-warning">warning</button>
    <button type="button" class="btn btn-danger">danger</button>

    <h3>按钮尺寸</h3>
    <button type="button" class="btn btn-default">按钮</button>
    <button type="button" class="btn btn-primary btn-lg">primary</button>
    <button type="button" class="btn btn-success btn-sm">success</button>
    <button type="button" class="btn btn-info btn-xs">info</button>

    <h3>把图标显示在按钮里</h3>
    <button type="button" class="btn btn-default">&nbsp;&nbsp;按钮</button>
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->



    <h3>下拉菜单</h3>
    <div class="dropdown">
      <button class="btn btn-primary dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-expanded="true">
        Dropdown

      </button>
      <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
        <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Action</a></li>
        <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Another action</a></li>
        <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Something else here</a></li>
        <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Separated link</a></li>
      </ul>
    </div>
     <h3>输入框</h3>
    <div class="input-group">

      <input type="text" placeholder="username">
    </div>

    <div class="input-group">

      <input type="password" placeholder="password">
    </div>

     <h3>表单</h3>
    <form>
    <div class="form-group">

      <input type="email" id="exampleInputEmail1" placeholder="Enter email">
    </div>
    <div class="form-group">

      <input type="password" id="exampleInputPassword1" placeholder="Password">
    </div>
    <div class="form-group">
      <label for="exampleInputFile">File input</label>
      <input type="file" id="exampleInputFile">
      <p class="help-block">Example block-level help text here.</p>
    </div>
    <div class="checkbox">
      <label>
        <input type="checkbox"> Check me out
      </label>
    </div>
    <button type="submit" class="btn btn-default">Submit</button>
  </form>

 <h3>警告框</h3>
    <div class="alert alert-warning alert-dismissible" role="alert">
       <button type="button" class="close" data-dismiss="alert" aria-label="Close">&times;</button>
       <strong>Warning!</strong> Better check yourself, you're not looking too good.
    </div>
    <div class="alert alert-success" role="alert">
        <a href="#" class="alert-link">success!</a>
    </div>
    <div class="alert alert-info" role="alert">
        <a href="#" class="alert-link">info!</a>
    </div>
    <div class="alert alert-warning" role="alert">
        <a href="#" class="alert-link">warning!</a>
    </div>
    <div class="alert alert-danger" role="alert">
        <a href="#" class="alert-link">danger!</a>
    </div>
     <h3>进度条</h3>
    <div class="progress">
      <div class="progress-bar" role="progressbar" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100" style="width: 60%;">
        70%
      </div>
    </div>
    <table class="table table-striped">
          <th>
            <td>NAME</td>
            <td>AGE</td>
            <td>SEX</td>
            <td>aaa</td>
          </th>
        <tr>
            <td>XIONG</td>
            <td>23</td>
            <td>男</td>
            <td>183</td>
        </tr>
        <tr>
            <td>XIONG</td>
            <td>23</td>
            <td>男</td>
            <td>183</td>
        </tr>
        <tr>
            <td>XIONG</td>
            <td>23</td>
            <td>男</td>
            <td>183</td>
        </tr>
        <tr>
            <td>XIONG</td>
            <td>23</td>
            <td>男</td>
            <td>183</td>
        </tr>
        <tr class="active"><td>XIONG</td>
            <td>23</td>
            <td>男</td>
            <td>183</td></tr>
        <tr class="success"><td>XIONG</td>
            <td>23</td>
            <td>男</td>
            <td>183</td></tr>
        <tr class="warning"><td>XIONG</td>
            <td>23</td>
            <td>男</td>
            <td>183</td></tr>
        <tr class="danger"><td>XIONG</td>
            <td>23</td>
            <td>男</td>
            <td>183</td></tr>
        <tr class="info"><td>XIONG</td>
            <td>23</td>
            <td>男</td>
            <td>183</td></tr>
    </table>
    <p>
  <button type="button" class="btn btn-primary btn-lg">(大按钮)Large button</button>
  <button type="button" class="btn btn-default btn-lg">(大按钮)Large button</button>
</p>
<p>
  <button type="button" class="btn btn-primary">(默认尺寸)Default button</button>
  <button type="button" class="btn btn-default">(默认尺寸)Default button</button>
</p>
<p>
  <button type="button" class="btn btn-primary btn-sm">(小按钮)Small button</button>
  <button type="button" class="btn btn-default btn-sm">(小按钮)Small button</button>
</p>
<p>
  <button type="button" class="btn btn-primary btn-xs">(超小尺寸)Extra small button</button>
  <button type="button" class="btn btn-default btn-xs">(超小尺寸)Extra small button</button>
</p>
<button type="button" class="btn btn-primary btn-lg active">Primary button</button>
<button type="button" class="btn btn-default btn-lg active">Button</button>
<button type="button" class="btn btn-lg btn-primary" disabled="disabled">Primary button</button>
<button type="button" class="btn btn-default btn-lg" disabled="disabled">Button</button>

<img src="..." alt="..." class="img-rounded">方
<img src="..." alt="..." class="img-circle">圆
<img src="..." alt="..." class="img-thumbnail">边框
<p class="bg-primary">.dddddddd..</p>
<p class="bg-success">ffffffff...</p>
<p class="bg-info">...eeeeeeeeeee</p>
<p class="bg-warning">..wwwwwwwwww.</p>
<p class="bg-danger">...gggggggggg</p>

<button type="button" class="btn btn-default" aria-label="Left Align">

</button>

<button type="button" class="btn btn-default btn-lg">
   Star
</button>

<div class="dropup">
  <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
    Dropup

  </button>
  <!-- <ul class="dropdown-menu" aria-labelledby="dropdownMenu2">
    <li><a href="#">Action</a></li>
    <li><a href="#">Another action</a></li>
    <li><a href="#">Something else here</a></li>
    <li role="separator" class="divider"></li>
    <li><a href="#">Separated link</a></li>
  </ul> -->
    <ul class="dropdown-menu" aria-labelledby="dropdownMenu4">
      <li><a href="#">Regular link</a></li>
      <li class="disabled"><a href="#">Disabled link</a></li>
      <li><a href="#">Another link</a></li>
    </ul>

</div>
    <script src="http://cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="http://cdn.bootcss.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
  </body>
</html>

 

Bootstrap 是最受应接的 HTML、CSS 和 JS 框架,用于支付响应式布局、移动器材优先的 WEB 项目。 使用感觉简约大方便捷...

  • 自 Bootstrap 3 起,框架包涵了由上至下于漫天库的移位器材优先的体裁。
  • 浏览器帮助:全部的主流浏览器都帮衬 Bootstrap。

    图片 1 图片 2 图片 3 图片 4 图片 5

  • 轻巧上手:只要你具有 HTML 和 CSS 的基础知识,您就足以起来读书 Bootstrap。

  • 响应式设计:Bootstrap 的响应式 CSS 能够自适应于台式机、平板计算机和手提式有线话机。

Bootstrap 使用 Helvetica Neue、 Helvetica、 Arial 和 sans-serif 作为其私下认可的字体栈。

应用 Bootstrap 的排版天性,能够成立标题、段落、列表及另外内联元素。

内联子标题

假诺急需向任何标题增添一个内联子标题,只须求轻松地在要素两旁添加<small>,可能增加 .small class,那样子您就能够赢得贰个字号更加小的颜色更加浅的文书,如上边实例所示:

实例

<h1>笔者是标题1 h1. <small>作者是副标题1 h1</small></h1><h2>作者是标题2 h2. <small>小编是副题目2 h2</small></h2><h3>作者是标题3 h3. <small>小编是副标题3 h3</small></h3><h4>我是题目4 h4. <small>我是副题目4 h4</small></h4><h5>笔者是标题5 h5. <small>小编是副题目5 h5</small></h5><h6>作者是标题6 h6. <small>小编是副标题6 h6</small></h6>

 

 

 

 

<divclass="container"><divclass="jumbotron"><h1>小编的首先个 Bootstrap 页面</h1><p>重新载入参数窗口大小,查看响应式效果!</p></div><divclass="row"><divclass="col-sm-4"><h3>Column 1</h3><p>学的不唯有是技巧,更是但愿!</p><p>再牛逼的企盼,也抵不住你傻逼似的百折不挠!</p></div><divclass="col-sm-4"><h3>Column 2</h3><p>学的不单是本事,更是但愿!</p><p>再牛逼的期待,也抵不住你傻逼似的坚贞不屈!</p></div><divclass="col-sm-4"><h3>Column 3</h3><p>学的不不过能力,更是期待!</p><p>再牛逼的愿意,也抵不住你傻逼似的坚定不移!</p></div></div></div>

本文由明仕msyz手机版发布于旅游-环球旅讯,转载请注明出处:Bootstrap

TAG标签:
Ctrl+D 将本页面保存为书签,全面了解最新资讯,方便快捷。