目录搜索
Getting startedAccessibility(无障碍)Browsers and devices(浏览器和设备)Build tools(构建工具)Contents(内容)Download(下载)JavaScriptTheming Bootstrap(主题Bootstrap)WebpackComponents: AlertsAlerts(警报)Components: BadgesBadges(徽章)Components: BreadcrumbBreadcrumbComponents: Button groupButton group(按钮组)Components: ButtonsButtons(按钮)Components: CardsComponents: CarouselCards(卡)Carousel(圆盘传送带)Components: CollapseCollapse(折叠)Components: DropdownsDropdowns(下拉菜单)Components: FormsForms(表单)Components: Input groupInput group(输入群组)Components: Input groupJumbotron(广告大屏幕)Components: List groupList group(列表组)Components: ModalModal(互动视窗)Components: NavbarNavbar(导航栏)Components: NavsNavs(导航栏)Components: PaginationPagination(分页)Components: PopoversPopovers(弹出框)Components: ProgressProgress(进度条)Components: ScrollspyScrollspy(滚动监听)Components: TooltipsTooltips(提示工具)ContentCode(代码)Figures(图片区)Images(图片)Reboot(重置)Tables(表格)Typography(排版)LayoutGrid(网格)Layout(布局)Media object(多媒体对象)Utilities for layout(排版通用类别)MigrationMigrating to v4(迁移到v4)UtilitiesBorders(边框)Clearfix(清除浮动)Close icon(关闭图标)Colors(颜色)Display property(显示属性)Embeds(内嵌)Flex(弹性)Float(浮动)Image replacement(图像替换)Position(位置)Screenreaders(荧幕阅读器)Sizing(尺寸)Spacing(间隔)Text(文本)Vertical alignment(垂直对齐)Visibility(能见度)
文字

展示主角(hero)单位风格内容的轻量级灵活组件。

一个轻量级,灵活的组件,可以选择扩展整个视口,以展示您网站上的关键营销信息。

<div class="jumbotron">  <h1 class="display-3">Hello, world!</h1>  <p class="lead">This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>  <hr class="my-4">  <p>It uses utility classes for typography and spacing to space content out within the larger container.</p>  <p class="lead">    <a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a>  </p></div>

为了使 jumbotron 完整宽度,并且没有圆角,添加.jumbotron-fluid修饰符类并添加一个.container.container-fluid之内。

<div class="jumbotron jumbotron-fluid">  <div class="container">    <h1 class="display-3">Fluid jumbotron</h1>    <p class="lead">This is a modified jumbotron that occupies the entire horizontal space of its parent.</p>  </div></div>
上一篇:下一篇: