- 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.
推薦閱讀
- OpenStack Cloud Computing Cookbook(Third Edition)
- Vue.js設計與實現
- Android和PHP開發最佳實踐(第2版)
- Instant Zepto.js
- Servlet/JSP深入詳解
- Processing互動編程藝術
- SQL Server 2012數據庫管理與開發項目教程
- Nginx實戰:基于Lua語言的配置、開發與架構詳解
- PySide 6/PyQt 6快速開發與實戰
- Learning Modular Java Programming
- GameMaker Essentials
- Node.js區塊鏈開發
- Mastering Concurrency in Python
- Drupal Search Engine Optimization
- 金融商業數據分析:基于Python和SAS