書名: Angular UI Development with PrimeNG作者名: Sudheer Jonna Oleg Varaksin本章字數: 96字更新時間: 2021-07-15 17:33:01
Basic principles
The layout container should have the ui-g style class. Children elements of the layout container become columns when they are prefixed with ui-g-* where * is any number from 1 to 12. The number expresses the taken space of 12 available units. When the number of columns exceeds 12, columns wrap to the next line:
<div class="ui-g">
<div class="ui-g-2">2</div>
<div class="ui-g-4">4</div>
<div class="ui-g-6">6</div>
<div class="ui-g-8">8</div>
<div class="ui-g-4">4</div>
</div>
The following layout has two lines (rows):

The same two-row layout is also possible with two ui-g containers:
<div class="ui-g">
<div class="ui-g-2">2</div>
<div class="ui-g-4">4</div>
<div class="ui-g-6">6</div>
</div>
<div class="ui-g">
<div class="ui-g-8">8</div>
<div class="ui-g-4">4</div>
</div>
Generally, n containers with the ui-g style class creates n rows.
推薦閱讀
- UNIX編程藝術
- 大學計算機應用基礎實踐教程
- 軟件項目管理(第2版)
- 大學計算機基礎實驗教程
- Mastering Python Scripting for System Administrators
- 數據庫系統原理及MySQL應用教程
- Data Analysis with IBM SPSS Statistics
- CKA/CKAD應試教程:從Docker到Kubernetes完全攻略
- Machine Learning in Java
- Android開發三劍客:UML、模式與測試
- Django 3.0入門與實踐
- MySQL程序員面試筆試寶典
- Python編程:從入門到實踐(第3版)
- AI自動化測試:技術原理、平臺搭建與工程實踐
- Python編程基礎教程