- Mastering Bootstrap 4(Second Edition)
- Benjamin Jakobus Jason Marah
- 125字
- 2021-06-24 19:25:51
Rows
A row is used to define a selection of elements that should be dealt with as a horizontal group. As such, rows reside within a container element. The power of the row lies in being able to stack content vertically, almost like containers within a container, or defining a section of the page. Creating a row is as simple as applying the row class to the desired element:
<body>
<div class="container">
<h1>Help, I'm trapped in a container!</h1>
<div class="row">
<div>Section 1</div>
</div>
<div class="row">
<div>Section 2</div>
</div>
<div class="row">
<div>Section 3</div>
</div>
</div>
<div>
<h1>I'm free!</h1>
</div>
</body>
Take a look at Figure 2.4, as follows:

Figure 2.4: Using rows (example03.html)
The true power of rows only becomes apparent when they are used with columns.
Flexbox is now on by default, so support for IE9 was dropped from Bootstrap 4.
推薦閱讀
- 電腦組裝與系統(tǒng)安裝
- 操作系統(tǒng)實用教程(Linux版)
- 嵌入式Linux開發(fā)技術
- Implementing Cisco UCS Solutions
- Modern Web Testing with TestCafe
- 零起點學Linux系統(tǒng)管理
- Persistence in PHP with the Doctrine ORM
- 數(shù)據(jù)中心系統(tǒng)工程及應用
- 巧學活用Windows 7
- 計算機系統(tǒng):基于x86+Linux平臺
- Learn SwiftUI
- 統(tǒng)信UOS應用開發(fā)進階教程
- 鴻蒙HarmonyOS手機應用開發(fā)實戰(zhàn)
- Multi-Cloud for Architects
- Linux深度攻略