博主信息
博文 61
粉丝 0
评论 0
访问量 65786
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
bootstrap练习
笑颜常开的博客
原创
1118人浏览过

<!DOCTYPE html>

<html>


<head>

  <title>练习</title>

  <link rel="icon" type="image/x-icon" href="images/2.png">

  <link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.min.css">

  <style type="text/css">

    .col-md-4 {

      background: #FAFA0F;

      height: 40px;

    }


    .col-md-8 {

      background: #ff6500;

      height: 40px;

    }


    .col-md-6 {

      background: pink;

      height: 40px;

    }


    .col-md-2 {

      background: #0ff7fa;

      height: 40px;

    }


    .col-md-5 {

      background:#a2f20a;

      height: 500px;

    }


    .col-md-7 {

      background:#ccc;

      height: 500px;

    }

    .col-md-3 {

      background:blue;

      height: 500px;

    }


    .col-md-9 {

      background:red;

      height: 500px;

    }


    .container {

      width: 75%;margin-top:20px;

    }

    .table{

      width: 700px;

      margin: 10px auto;

    }

  </style>

</head>


<body>

  <!-- 1/全局css样式

container-fluid 100%宽度

.container 固定宽度

两者不能相互嵌套

栅格系统

行row(必须包含container和container-fluid)

列column(一行12列,超出另一行显示) -->

  <!-- <div class="container-fluid">

    <div class="row">

      <div class="col-md-4"></div>

      <div class="col-md-8"></div>

    </div>

  </div> -->

  <!-- 布局中column的水平排列 -->

  <!-- <div class="container">

    <div class="row">

      <div class="col-md-4"></div>

      <div class="col-md-6"></div>

      <div class="col-md-2"></div>

    </div>

  </div> -->

  <!-- 列位移,.col-md-offset- -->

  <!-- <div class="container">

    <div class="row">

      <div class="col-md-6"></div>

      <div class="col-md-2-4 col-md-offset-4"></div>

    </div>

  </div> -->

  <!-- 列嵌套 -->

  <!-- <div class="container">

    <div class="row">

      <div class="col-md-5">

        <div class="row">

          <div class="col-md-3"></div>

          <div class="col-md-9"></div>

        </div>

      </div>

      <div class="col-md-7"></div>

    </div>

  </div> -->

  <!-- 表格:

  table给以表格的基本样式,水平方向的分割线,padding等 -->

  <!-- <table class="table table-bordered">

    <thead>

      <tr>

        <th>商品名称</th>

        <th>类型</th>

        <th>价格</th>

      </tr>

    </thead>

    <tbody>

      <tr>

        <td>苹果</td>

        <td>水果</td>

        <td>10元</td>

      </tr>

    </tbody>

  </table> -->

  <form >

    <input type="text" class="form-control" style="width:400px;">

  </form>

</body>


</html>


本博文版权归博主所有,转载请注明地址!如有侵权、违法,请联系admin@php.cn举报处理!
全部评论 文明上网理性发言,请遵守新闻评论服务协议
0条评论
作者最新博文
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号

  • 登录PHP中文网,和优秀的人一起学习!
    全站2000+教程免费学