Bootstrap CSS組件之大螢幕展播_javascript技巧

來源:互聯網
上載者: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>

以上就是本文的全部內容,希望對大家的學習有所協助,也希望大家多多支援雲棲社區。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.