zoukankan      html  css  js  c++  java
  • bootsrap-----固定布局解析

            <div class="container">
                container
            </div>
    .container {
      .container-fixed();容器的width为auto    左右padding为15  (注意是borderBox)
    容器的width为750     左右padding为15  (注意是borderBox) @media (min
    - @screen-sm-min) { @container-sm; } 容器的width为970     左右padding为15 (注意是borderBox) @media (min- @screen-md-min) {
    @container
    -md; } lg大屏 w >=1200 容器的width为1170   左右padding为15 (注意是borderBox) @media (min- @screen-lg-min) {
    1140+30=1700 @container
    -lg; } }
    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="UTF-8">
            <title></title>
            <link rel="stylesheet" href="css/bootstrap.min.css" />
            <style type="text/css">
                .container{
                    border: 1px solid;
                    height: 30px;
                    background: pink;
                }
            </style>
        </head>
        <body>
            <!--固定容器   
                                    width >= 1200         1170
                1200    >= width >= 992           970
                992        >= width >= 768            750
                768        >= width                        流体
            -->
            <div class="container">
                container
            </div>
        </body>
        <script src="js/jquery.min.js"></script>
        <script src="js/bootstrap.min.js"></script>
    </html>
    container

  • 相关阅读:
    禁止google浏览器强制跳转为https
    遍历打印文件目录结构
    添加忽略文件
    部署git服务器
    Location, History, Screen, Navigator对象
    Window 对象
    回调函数,setTimeout,Promise
    闭包
    this
    函数内部运作机制—上下文
  • 原文地址:https://www.cnblogs.com/hack-ing/p/11811418.html
Copyright © 2011-2022 走看看