官术网_书友最值得收藏!

Nested columns

Columns can be nested in more complex layouts. To achieve that, just nest elements with the ui-g-* style classes:

<div class="ui-g">
<div class="ui-g-8 ui-g-nopad">
<div class="ui-g-6">6</div>
<div class="ui-g-6">6</div>
<div class="ui-g-12">12</div>
</div>
<div class="ui-g-4">4</div>
</div>

With this structure, columns with different content will not have equal height. There is a more robust solution to force equal height for columns with different content. Just wrap the internal div elements inside another div with the ui-g style class or even simpler, assign ui-g to the column having nested columns:

<div class="ui-g">
<div class="ui-g ui-g-8 ui-g-nopad">
<div class="ui-g-6">6<br/>6<br/>6<br/>6<br/>6<br/>6<br/></div>
<div class="ui-g-6">6</div>
<div class="ui-g-12">12</div>
</div>
<div class="ui-g-4">4</div>
</div>

The result looks like the following:

Columns have a default padding of 0.5em. To remove it, you need to apply the ui-g-nopad style class. This was demonstrated in the earlier examples.
主站蜘蛛池模板: 桐乡市| 泰和县| 当雄县| 灯塔市| 江川县| 松溪县| 珠海市| 辽宁省| 鲁山县| 曲靖市| 聂拉木县| 山东省| 阳谷县| 平阳县| 灯塔市| 台南县| 福海县| 新竹市| 滦南县| 贵南县| 钟山县| 成都市| 慈溪市| 佛学| 鄂温| 呼玛县| 西平县| 库尔勒市| 铜山县| 泸定县| 颍上县| 梧州市| 延边| 长岭县| 西充县| 长丰县| 安远县| 新和县| 德州市| 长顺县| 江达县|