BootStrap--CSS組件--大螢幕展播

來源:互聯網
上載者:User

在設計網頁布局的時候,經常會有大屏內容的顯示jumbotron
顧名思義該組件可以增加標題的大小,並為登陸頁面內容添加更多的外邊距(margin)。
源碼中可以看出:
如果jumbotron放在container樣式內,則顯示圓角;如果不放在裡邊,則不會顯示圓角。

<!DOCTYPE html><html lang="en">  <head>    <meta charset="utf-8">    <meta http-equiv="X-UA-Compatible" content="IE=edge">    <!-- Bootstrap從3.0版本開始全面支援移動平台,貫徹移動先行宗旨 -->    <meta name="viewport" content="width=device-width, initial-scale=1">    <title>Bootstrap 101 Template</title>    <!-- Bootstrap -->    <link href="bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet">  </head>  <body>      <!--  超大螢幕jumbotron:            1.建立一個帶有 class .jumbotron. 的容器 <div>            2.除了更大的 <h1>,字型粗細 font-weight 被減為 200-->      <div class="jumbotron">          <h1>Hello,world!</h1>          <p>This is a simple hero unit.</p>          <p><button class="btn btn-primary">Learn more</button></p>      </div>    <!-- bootstrap是基於jQuery-->    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>    <script src="bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>  </body></html>
相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.