# 栅格系统

流式布局容器将最外面的布局元素 .container 修改为 .container-fluid ,就可以将固定宽度的栅格布局转换为 100% 宽度的布局。

栅格系统用于通过一系列的行(row)与列(column)的组合来创建页面布局,你的内容就可以放入这些创建好的布局中。具体参考 (opens new window)

.col-xs-12
.col-xs-1
.col-xs-11
.col-xs-6.col-sm-2
.col-xs-6.col-sm-10
.col-xs-12.col-lg-6
.col-xs-12.col-lg-6
.col-xs-4
.col-xs-8
.col-xs-5
.col-xs-7
.col-xs-6
.col-xs-6
.col-xs-7
.col-xs-5
.col-xs-8
.col-xs-4
.col-xs-9
.col-xs-3
.col-xs-10
.col-xs-2
.col-xs-11
.col-xs-1
.col-xs-12
.col-xs-1
.col-xs-1
.col-xs-1
.col-xs-1
.col-xs-1
.col-xs-1
.col-xs-1
.col-xs-1
.col-xs-1
.col-xs-1
.col-xs-1
.col-xs-1
<div class="container-fluid center">
    <div class="row">
        <div class="col-xs-12">
            <span>.col-xs-12</span>
        </div>
    </div>

    <div class="row">
        <div class="col-xs-1">
            <span>.col-xs-1</span>
        </div>

        <div class="col-xs-11">
            <span>.col-xs-11</span>
        </div>
    </div>

    <div class="row">
        <div class="col-xs-6 col-sm-2">
            <span>.col-xs-6.col-sm-2</span>
        </div>

        <div class="col-xs-6 col-sm-10">
            <span>.col-xs-6.col-sm-10</span>
        </div>
    </div>

    <div class="row">
        <div class="col-xs-12 col-lg-6">
            <span>.col-xs-12.col-lg-6</span>
        </div>

        <div class="col-xs-12 col-lg-6">
            <span>.col-xs-12.col-lg-6</span>
        </div>
    </div>

    <div class="row">
        <div class="col-xs-4">
            <span>.col-xs-4</span>
        </div>

        <div class="col-xs-8">
            <span>.col-xs-8</span>
        </div>
    </div>

    <div class="row">
        <div class="col-xs-5">
            <span>.col-xs-5</span>
        </div>

        <div class="col-xs-7">
            <span>.col-xs-7</span>
        </div>
    </div>

    <div class="row">
        <div class="col-xs-6">
            <span>.col-xs-6</span>
        </div>

        <div class="col-xs-6">
            <span>.col-xs-6</span>
        </div>
    </div>

    <div class="row">
        <div class="col-xs-7">
            <span>.col-xs-7</span>
        </div>

        <div class="col-xs-5">
            <span>.col-xs-5</span>
        </div>
    </div>

    <div class="row">
        <div class="col-xs-8">
            <span>.col-xs-8</span>
        </div>

        <div class="col-xs-4">
            <span>.col-xs-4</span>
        </div>
    </div>

    <div class="row">
        <div class="col-xs-9">
            <span>.col-xs-9</span>
        </div>

        <div class="col-xs-3">
            <span>.col-xs-3</span>
        </div>
    </div>

    <div class="row">
        <div class="col-xs-10">
            <span>.col-xs-10</span>
        </div>

        <div class="col-xs-2">
            <span>.col-xs-2</span>
        </div>
    </div>

    <div class="row">
        <div class="col-xs-11">
            <span>.col-xs-11</span>
        </div>

        <div class="col-xs-1">
            <span>.col-xs-1</span>
        </div>
    </div>

    <div class="row">
        <div class="col-xs-12">
            <span>.col-xs-12</span>
        </div>
    </div>

    <div class="row">
        <div class="col-xs-1">
            <span>.col-xs-1</span>
        </div>
        <div class="col-xs-1">
            <span>.col-xs-1</span>
        </div>
        <div class="col-xs-1">
            <span>.col-xs-1</span>
        </div>
        <div class="col-xs-1">
            <span>.col-xs-1</span>
        </div>
        <div class="col-xs-1">
            <span>.col-xs-1</span>
        </div>
        <div class="col-xs-1">
            <span>.col-xs-1</span>
        </div>
        <div class="col-xs-1">
            <span>.col-xs-1</span>
        </div>
        <div class="col-xs-1">
            <span>.col-xs-1</span>
        </div>
        <div class="col-xs-1">
            <span>.col-xs-1</span>
        </div>
        <div class="col-xs-1">
            <span>.col-xs-1</span>
        </div>
        <div class="col-xs-1">
            <span>.col-xs-1</span>
        </div>
        <div class="col-xs-1">
            <span>.col-xs-1</span>
        </div>
    </div>
</div>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
Expand Copy
Last Updated: 8/16/2021, 5:47:05 PM