如何在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.mzph.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 …