- 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.
推薦閱讀
- Visual Basic 6.0程序設計計算機組裝與維修
- Vue.js快速入門與深入實戰
- Java深入解析:透析Java本質的36個話題
- JavaScript 程序設計案例教程
- 深入理解Elasticsearch(原書第3版)
- Python忍者秘籍
- SQL Server與JSP動態網站開發
- Android應用開發實戰
- 編程改變生活:用Python提升你的能力(進階篇·微課視頻版)
- Python Web自動化測試設計與實現
- 人人都能開發RPA機器人:UiPath從入門到實戰
- 一覽眾山小:ASP.NET Web開發修行實錄
- 信息學奧林匹克競賽初賽精講精練
- Mastering Unity 2017 Game Development with C#(Second Edition)
- Mobile Test Automation with Appium