如何在Bootstrap中使用Jumbotron和頁面標頭類?

Introduction

介紹

In the previous article, we have learned how Responsive column, Nesting Columns and offset Columns work and how to use them? I hope now, you all are comfortable with the grid system; what is it, how to use it and how we can use it for creating a responsive page. Now, in this article, we’ll see how .Jumbotron class works and what is it, and know more about .page-header class. If you have any doubt, feel free to ask in the comment section.

在上一篇文章中,我們了解了響應列,嵌套列和偏移列的工作方式以及如何使用它們 ? 我希望現在,大家都對網格系統感到滿意; 它是什么,如何使用它以及我們如何使用它來創建響應式頁面。 現在,在本文中,我們將了解.Jumbotron類的工作原理以及它的作用,并進一步了解.page-header類 。 如有任何疑問,請隨時在評論部分提問。

巨寶 (JUMBOTRON)

It is like a big grey box. we can use this .jumbotron class to highlight some special piece of information and to focus on visitor's attention; where the content size of heading increases and it adds a lot of margins. We can use any HTML, CSS tags, elements and any style, including bootstrap elements and classes inside it. To use .jumbotron class you have to use a <div> element with .jumbotron class.

就像一個大灰盒子。 我們可以使用這個.jumbotron類來突出顯示一些特殊的信息并吸引訪問者的注意力; 標題的內容大小增加了,并且增加了很多邊距。 我們可以使用任何HTML,CSS標簽,元素和任何樣式,包括其中的bootstrap元素和類。 要使用.jumbotron類,你必須使用一個<div>與.jumbotron類元素。

If you use .container and .container-fluid class, then you can also use .jumbotron class inside and outside the .container and .container-fluid class where .container-fluid occupies the entire horizontal space.

如果使用.container和.container-fluid類,則還可以在.container和.container-fluid類的內部和外部使用.jumbotron類,其中.container-fluid占據整個水平空間。

We can use this .jumbotron for presentation, images, Articles, blogs, New Posts etc.

我們可以使用此.jumbotron進行演示,圖像,文章,博客,新帖子等。

Example

<div class="container">
<div class="jumbotron">
<h1> Jumbotron Inside the .container </h1>
</div>
</div>
<div class="jumbotron">
<div class="container">
<h1> Jumbotron Outside the .container </h1>
</div>
</div>	
<div class="container-fluid">
<div class="jumbotron">
<h1> Jumbotron Inside the .container-fluid </h1>
</div>
</div>
<div class="jumbotron">
<div class="container-fluid">
<h1> Jumbotron Outside the .container-fluid </h1>
</div>
</div>

Mobile and Tablet View

手機和平板電腦視圖

jumbotron class in BS


Desktop View

桌面檢視

jumbotron class Desktop view in BS


Note:

注意:

You can also use .Jumbotron-fluid class with .container and .container-fluid for full width jumbotron. It works similarly to .container-fluid class works for full width. There is not much difference between them.

您還可以將.Jumbotron-fluid類與.container和.container-fluid一起用于全寬jumbotron 。 它的作用類似于.container-fluid類的全寬度作品。 它們之間沒有太大區別。

Syntax:

句法:

 <div class="jumbotron jumbotron-fluid">

創建頁眉 (Create a Page-header)

There is also a another class .page-header class, .page-header class mainly work in bootstrap 3, not in bootstrap 4... just like .jumbotron class that creates a big grey box; same as .page-header class, add a horizontal line and add some extra spaces. It is like a section divider; Use <div> for .page-header class.

還有另一個.page-header類, .page-header類主要在bootstrap 3中工作,而不是在bootstrap 4中工作……就像.jumbotron類會創建一個大的灰色框; 與.page-header類相同,添加一條水平線并添加一些額外的空格。 它就像一個分區分隔符。 將<div>用于.page-header類。

Example: In this example, you can see that; there is no more difference between them.

示例:在此示例中,您可以看到; 他們之間沒有更多區別。

<div class="container" style="background-color:lightgrey">
<div class="page-header" >
<h1>We use page header </h1>
</div>
<p> Hello </p>
<p> You have learnt bootstrap. </p>
</div>
<div class="container-fluid" style="background-color:grey">
<div class="page-header" >
<h1>We use page header </h1>
</div>
<p> Hello </p>
<p> You have learnt bootstrap. </p>
</div>

Mobile and Tablet view

手機和平板電腦視圖

page-header class mobile tablet view in BS


Desktop view

桌面檢視

page-header class desktop view in BS


Conclusion:

結論:

So, In this article we have learnt about .jumbotron, .jumbotron-fluid and .page-header class. In this next article, we will learn about what is typography and how it is used. See you soon in the next article! Happy Learning!

因此,在本文中,我們了解了.jumbotron , .jumbotron-fluid和.page -header類。 在下一篇文章中,我們將學習什么是排版以及如何使用它。 下篇文章很快見! 學習愉快!

翻譯自: https://www.includehelp.com/html/how-to-use-jumbotron-and-page-header-class-in-bootstrap.aspx

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/542504.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/542504.shtml
英文地址,請注明出處:http://en.pswp.cn/news/542504.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

python中的數字類型格式與運算,python數字數據類型

python數字數據類型1. 數字在我們很小的時候&#xff0c;父母便開始教我們數數&#xff0c;從1數到10&#xff0c;聰明的孩子可以數的更多。python支持3中數值類型整型(int)&#xff0c;通常稱之為整型或整數&#xff0c;這個概念與我們小學時學過的整數是相同的&#xff0c;py…

getprocaddress得到為0_基于ZU+系列MPSoC芯片的USB3.0/2.0接口硬件設計

本文主要介紹Zynq UltraScale MPSoC系列芯片的USB3.0/2.0接口硬件設計。ZU系列MPSoC要實現USB3.0/2.0的全部功能&#xff0c;需要同時使用MIO和GTR。因為GTR接口中的USB接口只支持USB3.0&#xff0c;對USB2.0的支持需要通過MIO接口外接USB PHY實現。ZU系列MPSoC包括兩個USB接口…

如何設置單詞第一個字母大寫_大寫一行中每個單詞的第一個和最后一個字母

如何設置單詞第一個字母大寫Problem statement: 問題陳述&#xff1a; Given an input line, capitalize first and last letter of each word in the given line. Its provided that the input line is in lowercase. 給定輸入行&#xff0c; 將給定行中每個單詞的第一個和最…

php如何編造簡歷,在簡歷里編造內容需要注意哪些問題?

在個人簡歷里編造內容可得有一定依據才行&#xff0c;總得為自己后期做個準備工作是不是&#xff1f;你編造的東西不只是給企業看一看而已&#xff0c;企業還會對這些內容作出進一步的判斷&#xff0c;并且可能就其對你進行提問&#xff0c;如果你答不出來而曝光自己是在欺騙企…

Java LinkedList公共對象pollLast()方法(帶示例)

LinkedList公共對象pollLast()方法 (LinkedList public Object pollLast() method) This method is available in package java.util.LinkedList.pollLast(). 軟件包java.util.LinkedList.pollLast()中提供了此方法。 This method is used to retrieves the last or ending ele…

python編寫學生成績排序_Python實現按學生年齡排序的實際問題詳解

前言 本文主要給大家了關于利用Python按學生年齡排序的相關內容&#xff0c;分享出來供大家參考學習&#xff0c;下面話不多說了&#xff0c;來一起看看詳細的介紹&#xff1a; 問題&#xff1a;定義一個Class&#xff1a;包含姓名name、性別gender、年齡age&#xff0c;需要按…

前方危險-讓很多“高逼格”高管深刻反思的文章

在很多的時候&#xff0c;現實會讓我們每個人迷惑&#xff0c;周邊的人和事可以讓人極度的膨脹&#xff0c;你可以想吃了迷藥一樣&#xff0c;分不清是現實還是虛幻。很久以前&#xff0c;在公司的一次會議上&#xff0c;某主管告訴我們說&#xff0c;“他一個同事&#xff0c;…

oracle實例的概念組成,oracle體系結構的兩個基本概念:數據庫和實例

您可能感興趣的話題&#xff1a;oracle核心提示&#xff1a;要了解oracle體系結構必須先了解兩個基本的概念: 數據庫和實例.要了解oracle體系結構必須先了解兩個基本的概念: 數據庫和實例.一: 數據庫數據庫(database)是一個數據集合.無論數據庫是采用關系結構還是面向對象結構,…

c#二維數據最大最小值_C#| 打印類型,各種數據類型的最大值和最小值

c#二維數據最大最小值In the below example – we are printing types, min value, max value of various data types in C#, like integer data types, floating point data types, Boolean data type, Reference types, Nullable types. 在下面的示例中-我們正在打印C&#x…

自定義taglib引入失敗_小程序拼團總失敗?看看微信官方和開發者們怎么說

閱讀時間&#xff1a;6m最懂小程序生態商業的自媒體可怕... 剛過國慶&#xff0c;南方還在短袖短裙&#xff0c;北方竟然都下雪了&#xff01;什么叫一天之內感受四季&#xff1f;曉程序觀察(yinghoo-tech)的小伙伴們算是深刻體驗了&#xff0c;穿著短袖上飛機&#xff0c;抵達…

微信公眾平臺開發5:翻譯功能

思路分析首先對用戶發送過來的消息進行判斷&#xff0c;判斷消息里是否含有“翻譯”關鍵字&#xff0c;如果有&#xff0c;則提取翻譯內容&#xff0c;然后調用網絡上開放的翻譯API 進行翻譯。我們用有道翻譯API&#xff1a;http://fanyi.youdao.com/openapi?pathdata-mode記下…

Linux之基礎I/O

目錄 一、C語言中的文件操作 二、系統文件操作I/O 三、文件描述符fd 1、文件描述符的引入 2、對fd的理解 3、文件描述符的分配規則 四、重定向 1、重定向的原理 2、重定向的系統調用dup2 五、Linux下一切皆文件 一、C語言中的文件操作 1、打開和關閉 在C語言的文…

moore和mealy_Mealy機和Moore機的比較研究 目錄

moore和mealyFinite automata may also have outputs corresponding to each input symbol. Such finite automata are known as finite automata with the output. 有限自動機還可以具有與每個輸入符號相對應的輸出。 這種有限自動機稱為輸出的有限自動機。 There are two fi…

oracle sys連接不上,oracle – 為什么我不能在SYS擁有的對象上創建觸發器?

在嘗試創建名為ghazal_current_bef_upd_row的觸發器時&#xff1a;create trigger ghazal_current_bef_upd_rowbefore update on ghazal_currentfor each rowwhen (new.Rating < old.Rating)begininsert into ghazal_current_audit(GhazalName,Old_Rating,New_Rating)values…

大一python編程題_請教python編程問題(作業就剩這幾道題了)

該樓層疑似違規已被系統折疊 隱藏此樓查看此樓1. def cleanword(word):(用Python寫出程序&#xff0c;使程序可以通過下面的doctest)""">>> cleanword(what?)what>>> cleanword("now!")now>>> cleanword(?"word!,$…

Linux筆記1-5 --用戶

## 1 ## 用戶理解用戶就是系統使用者的身份在系統中用戶存儲為若干竄字符若干個系統配置文件用戶信息涉及到的系統配置文件&#xff1a;/etc/passwd ###用戶信息用戶&#xff1a;密碼&#xff1a;uid&#xff1a;gid&#xff1a;說明&#xff1a;家目錄&#xff1a;用戶使用…

python運維開發培訓_運維架構師-Python 自動化運維開發-014

運維架構師-Python 自動化運維開發-014九、標準數據類型1、為什么編程語言中要有類型類型有以下幾個重要角色&#xff1a;對機器而言&#xff0c;類型描述了內存中的電荷是怎么解釋的。對編譯器或者解釋器而言&#xff0c;類型可以協助確保上面那些電荷、字節在程序的運行中始終…

JavaScript | 演示函數中按值調用的示例

Here, we are designing a function named change() that has an argument and we are trying to change the value of the passed argument inside the function, but it will not effect to the main/actual argument that is passed as the argument while calling. 在這里&…

機器視覺支架制作(帶效果測試)

圖像處理系統中&#xff0c;鏡頭、光源的選配&#xff0c;對于最后能否產生穩定的識別效果至關重要。而搭載鏡頭、光源的是支架。機器視覺的支架一般都是根據項目的具體需要進行配置的&#xff0c;搜索淘寶能夠得到一些商品。 這些支架形狀不一&#xff0c;價格在數百元到千元之…

c語言中將整數轉換成字符串_在C語言中將ASCII字符串(char [])轉換為十六進制字符串(char [])...

c語言中將整數轉換成字符串Given an ASCII string (char[]) and we have to convert it into Hexadecimal string (char[]) in C. 給定一個ASCII字符串(char [])&#xff0c;我們必須在C中將其轉換為十六進制字符串(char [])。 Logic: 邏輯&#xff1a; To convert an ASCII …