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

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.
主站蜘蛛池模板: 新野县| 福清市| 镇赉县| 南部县| 延川县| 湘乡市| 湛江市| 临武县| 洛阳市| 特克斯县| 周口市| 苏尼特右旗| 迁安市| 大港区| 蒙山县| 布尔津县| 桦川县| 大田县| 韩城市| 玉门市| 抚松县| 巫溪县| 门头沟区| 法库县| 依兰县| 郯城县| 班戈县| 行唐县| 安吉县| 新民市| 衢州市| 赤壁市| 晴隆县| 安远县| 仪陇县| 芜湖市| 夏河县| 怀柔区| 南部县| 金山区| 吴旗县|