?
本文檔使用 php中文網(wǎng)手冊 發(fā)布
上一章節(jié)我們介紹了中型設(shè)備和小型設(shè)備的網(wǎng)格布局,小型設(shè)備上使用的比例為 25%/75% (.small-3 和 .small-9),但在中型設(shè)備上使用的比例為 50%/50% (.medium-6 和 .medium-6):
<div?class="small-3?medium-6?columns">....</div> <div?class="small-9?medium-6?columns">....</div>
在大型設(shè)備上我們推薦的比例為 ?33%/66%。
提示: 大型設(shè)備的屏幕尺寸定義大于 64.0625em。
大型設(shè)備上使用 .large-*
類。
現(xiàn)在我們在大型設(shè)備上添加兩列:
<div?class="small-3?medium-6?large-4?columns">....</div> <div?class="small-9?medium-6?large-8?columns">....</div>
.small-3
和 .small-9
).medium-6
和 .medium-6
).large-4
和 .large-8
)<div?class="row"> ??<div?class="small-3?medium-6?large-4?columns"?style="background-color:yellow;"> ????<p>手冊網(wǎng)教程</p> ??</div> ??<div?class="small-9?medium-6?large-8?columns"?style="background-color:pink;"> ????<p>手冊網(wǎng)教程</p> ??</div> </div>實例預(yù)覽 ?
注意: 要保證數(shù)列加起來是 12 列! |
以下實例中我們指定了 .large-6
類 (不是 .medium-* 和 .small-*
)。這表明在大型設(shè)備上比例為 50%/50%。但在中型或小型設(shè)備上會水平堆疊 (100% 寬度):
?<div?class="row"> ??<div?class="large-6?columns"?style="background-color:yellow;"> ????<p>手冊網(wǎng)教程</p> ??</div> ??<div?class="large-6?columns"?style="background-color:pink;"> ????<p>手冊網(wǎng)教程</p> ??</div> </div>實例預(yù)覽 ?
關(guān)于我們 聯(lián)系我們 留言板
手冊網(wǎng)