zoukankan      html  css  js  c++  java
  • [Bootstrap] 1. container & container-fluid

    Container: 居中

    <!DOCTYPE html>
    <html>
      <head>
        <title>Blasting Off With Bootstrap</title>
        <link href='css/bootstrap.min.css' rel='stylesheet'>
        <link href='css/main.css' rel='stylesheet'>
      </head>
      <body>
        <div class='container'>
          <h1>The Fastest Way to Space</h1>
          <p>Make your way to space in the comfort of your own rocket, elevator or transporter.</p>
          <button type='button'>Take the Tour</button>
          <button type='button'>Book Tickets Now</button>
        </div>
    
        <div class="footer"><div class="container"><p >This is our footer</p></div></div>
        
      </body>
    </html>

     

    Container-fluid: 拉伸

    <!DOCTYPE html>
    <html>
      <head>
        <title>Blasting Off With Bootstrap</title>
        <link href='css/bootstrap.min.css' rel='stylesheet'>
        <link href='css/main.css' rel='stylesheet'>
      </head>
      <body>
        <div class='container'>
          <h1>The Fastest Way to Space</h1>
          <p>Make your way to space in the comfort of your own rocket, elevator or transporter.</p>
          <button type='button'>Take the Tour</button>
          <button type='button'>Book Tickets Now</button>
        </div>
    
        <div class="footer"><div class="container-fluid"><p >This is our footer</p></div></div>
        
      </body>
    </html>

     

  • 相关阅读:
    进程池-非阻塞式
    进程
    单例模式
    Python内置函数之open()
    Python内置函数之len()
    Python内置函数之isinstance()
    Python内置函数之input()
    可迭代对象,迭代器(生成器)区别
    Tomcat控制台输出
    Python内置函数之format()
  • 原文地址:https://www.cnblogs.com/Answer1215/p/4242505.html
Copyright © 2011-2022 走看看