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>

     

  • 相关阅读:
    南大《软件分析》课程笔记——Intermediate Representation
    leetcode刷题
    shiro550反序列化分析
    南大《软件分析》课程笔记——第一课
    再见2020
    S2-002漏洞分析
    编码&解码工具
    正码、反码和补码
    Java数据结构(二)
    Java数据集合
  • 原文地址:https://www.cnblogs.com/Answer1215/p/4242505.html
Copyright © 2011-2022 走看看