-
Notifications
You must be signed in to change notification settings - Fork 0
/
edit.html
2558 lines (2551 loc) · 103 KB
/
edit.html
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html><html><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<style>
ul.struct li { list-style: disc; }
ul.struct li.cls { list-style: circle; }
ul.struct li.att { list-style: circle; }
ul.struct li.txt { list-style: none; }
a.heading-link { text-decoration: none; margin-left: 0.5rem; color: white; }
a.heading-link:hover { color: skyblue; }
.custom-file-input:lang(ja) ~ .custom-file-label::after { content: "ファイル選択"; }
.custom-file-input:lang(es) ~ .custom-file-label::after { content: "Elegir"; }
.breadcrumb-item + .breadcrumb-item::before { content: "\00bb" }
</style>
<title>Bootstrap 4 tutorial: レイアウト: 概要 / グリッド / レイアウトユーティリティ</title>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-auto mr-auto">
<h1 class="display-4 mb-0">Bootstrap 4 tutorial</h1>
<p class="lead">レイアウト: <a href="#overview">概要</a> / <a href="#grid">グリッド</a> / <a href="#utilities">レイアウトユーティリティ</a></p>
</div>
<div class="col-auto dropdown mt-3"><a href="https://github.com/higuma/bootstrap-4-tutorial/" target="_blank"><img class="mr-1" src="../img/GitHub-Mark-32px.png"></a>
<button class="btn btn-outline-secondary dropdown-toggle" id="lang-select" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">言語</button>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="lang-select"><a class="dropdown-item" href="#">日本語 (Japanese)</a><a class="dropdown-item" href="../en/layout-1.html">英語 (English)</a></div>
</div>
</div>
<h2 class="mt-2" id="overview"><a href="https://getbootstrap.com/docs/4.2/layout/overview/" target="_blank">概要</a>
</h2>
<h4 class="mt-3 mb-1" id="overview-containers"><a href="https://getbootstrap.com/docs/4.2/layout/overview/#containers" target="_blank">コンテナ</a>
</h4>
<p class="mb-2"></p>Bootstrapではレイアウトのトップレベル要素(コンテナ)として <code>.container</code> または <code>.container-fluid</code> を用いる。
</div>
<div class="container mt-3 mb-4 py-2 border bg-light"><code>div.container</code> ⇒ (レスポンシブ) 画面幅の内側に入る固定ステップに調整、中央揃え</div>
<div class="container-fluid my-4 py-2 border bg-light"><code>div.container-fluid</code> ⇒ 常に(親要素に対し)横幅100%に設定</div>
<div class="container">
<h4 class="mt-4" id="overview-responsive-breakpoints"><a href="https://getbootstrap.com/docs/4.2/layout/overview/#responsive-breakpoints" target="_blank">レスポンシブ動作のブレークポイント</a>
</h4>
<p class="my-2">Bootstrapではレスポンシブ応答する幅のステップ設定をブレークポイント(breakpoint)と呼び、画面幅に対応した5通りの設定がある(詳しくは公式ドキュメントの <a href="https://getbootstrap.com/docs/4.2/layout/grid/#grid-options">Grid options</a> 一覧表を参照)。</p>
<table class="table table-bordered">
<thead class="thead-light">
<tr>
<th scope="col">名称</th>
<th scope="col">ビューポート(画面)幅</th>
<th scope="col"><code>.container</code> に設定される幅</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">(xs)</th>
<td><576px</td>
<td>設定なし(auto)</td>
</tr>
<tr>
<th scope="row">sm</th>
<td>≧576px</td>
<td>540px</td>
</tr>
<tr>
<th scope="row">md</th>
<td>≧768px</td>
<td>720px</td>
</tr>
<tr>
<th scope="row">lg</th>
<td>≧992px</td>
<td>960px</td>
</tr>
<tr>
<th scope="row">xl</th>
<td>≧1200px</td>
<td>1140px</td>
</tr>
</tbody>
</table>
<p class="mt-3 mb-2">Bootstrapでは <code>.col-md</code> のように上記2文字を用いたレスポンシブ設定を用いる。ルールは次の通り。</p>
<ul>
<li>幅指定なし(例: <code>.col</code> )は「全画面幅で有効(デフォルト)」、優先度は最小</li>
<li>幅指定(例: <code>.col-md</code> )は「この幅以上で有効」、幅指定なしより優先</li>
<li>幅指定が複数ある場合は幅の大きい設定が優先</li>
</ul>
<div class="alert alert-info" role="alert">このルールのため <code>-xs</code> という幅指定は(意図的に)ない。また優先度を利用して特定の幅領域だけ設定を有効にしたり、設定を変えてレイアウトを組み替えたりすることができる。</div>
<h4 class="mt-4" id="overview-z-index"><a href="https://getbootstrap.com/docs/4.2/layout/overview/#z-index" target="_blank">Z-index</a>
</h4>
<p>Bootstrapでは <code>1000</code> 以上の <code>z-index</code> を特定のコンポーネントのために予約している。また <code>1,2,3</code> は要素の状態(ホバー、アクティブ、フォーカス)の表示カスタマイズのために用いられる(表示効果用に内部で作成される兄弟要素に設定される)。現在Bootstarpが使用している <code>z-index</code> の一覧は次の通り。</p>
<table class="table table-bordered">
<thead class="thead-light">
<tr>
<th scope="col">Z-index</th>
<th scope="col">使用目的(コンポーネント)</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1,2,3</th>
<td>要素状態(ホバー、アクティブ、フォーカス)の表示効果用</td>
</tr>
<tr>
<th scope="row">1000</th>
<td><a href="components-4.html#dropdowns">ドロップダウン</a></td>
</tr>
<tr>
<th scope="row">1020</th>
<td><a href="navbar-sticky-top.html">上端張り付き</a> (ナビゲーションバー)</td>
</tr>
<tr>
<th scope="row">1030</th>
<td><a href="navbar-fixed-top.html">上端固定</a> / <a href="navbar-fixed-bottom.html">下端固定</a> (ナビゲーションバー)</td>
</tr>
<tr>
<th scope="row">1040</th>
<td><a href="components-8.html#behaviors">バックドロップ</a> (モーダル背景)</td>
</tr>
<tr>
<th scope="row">1050</th>
<td><a href="components-8.html">モーダル</a></td>
</tr>
<tr>
<th scope="row">1060</th>
<td><a href="components-11.html#popovers">ポップオーバー</a></td>
</tr>
<tr>
<th scope="row">1070</th>
<td><a href="components-12.html#tooltips">ツールチップ</a></td>
</tr>
</tbody>
</table>
<h2 class="mt-5" id="grid"><a href="https://getbootstrap.com/docs/4.2/layout/grid/" target="_blank">グリッド</a>
</h2>
<h4 class="mt-4" id="grid-overview"><a href="https://getbootstrap.com/docs/4.2/layout/grid/#how-it-works" target="_blank">基本的な使い方</a>
</h4>
<p class="my-2">グリッドはBootstrapの基本機能で、次に示す3階層の構造を用いてレイアウトを組む。</p>
<ul class="struct">
<li> <a href="#overview-containers">コンテナ(トップレベル) </a><code>div.container</code> (または <code>div.container-fluid</code> )
<ul>
<li>行 <code>div.row</code> (ここに <code>display: flex</code> が設定され、内側でflexbox機能を使える)
<ul>
<li>列 <code>div.col{+各種設定}</code></li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="alert alert-info">最初に読む場合は次の<a href="#grid-gutters">ガター</a>を飛ばしてその先の<a href="#grid-equal-width">列の等分配置</a>に進むとよい。行や列に独自のマージン/パディング設定を行う場合にガターをよく理解する必要がある(設定が特殊)。</div>
<h4 class="mt-2" id="grid-gutters">ガター</h4>
<p class="my-2">コンテナ <code>div.container(-fluid)?</code> にはガター(gutter)と呼ばれる左右15pxずつのパディング(内部要素との余白)が設定され、レイアウトする要素はその内側に配置される。そのため実際の内部要素の(最大)幅は <code>div.container</code> の幅(<a href="#overview-responsive-breakpoints">ブレークポイント</a>)から左右15pxずつ引いた値になる。</p>
<p class="my-2">本ページ自身もコンテナを用いたレイアウトでガターが設定されている。次はそれを示す例で、仕組みが分かるようにコンテナに灰色のボーダー、内部要素の領域に淡い背景色を付けている。左右に15pxずつパディング(ガター)が付き、その内側にレイアウトされる。</p>
</div>
<div class="container border">
<div class="bg-light">
<ul class="mb-0">
<li>外側: コンテナ <code>div.container</code> (灰色ボーダーの領域)
<ul>
<li>ガターを設定: <code>padding-(left|right): 15px</code></li>
</ul>
</li>
<li>内側(この部分): 内部要素(ライトグレー背景部分)</li>
<li>左右端: ガター(背景色が付いていない部分)</li>
</ul>
</div>
</div>
<div class="container">
<p class="my-2">ガターはレイアウトの余白を確保するためのもので、列 <code>.col</code> を複数横に配置すると30pxの余白を取る(Bootstrap標準値)。なおパディング(ガター)を設定した <code>.col </code> の内部がコンテンツ領域なので、背景を設定する場合は内部にもう1レベル <code>div</code> などの要素が必要になる(上の例のライトグレー背景の部分)。</p>
<div class="alert alert-info mt-3" role="alert"><strong>上級向け(要Sass): </strong>ガターの値はSass変数 <code>$grid-gutter-width</code> で設定しており、Sassレベルでカスタマイズすれば変更可能。詳しくは<a href="getting-started.html#css-customizing">Sassソースからのカスタマイズ</a>を参照。</div>
<p class="mt-3 mb-2">グリッドを用いる場合はこの内部に行 <code>div.row</code> を配置し、さらにその内側に列 <code>div.col</code> を配置するが、ガターの扱いが各レベルで全て異なり、特殊な設定が行われている。次はそれを示す実例(内部の文章はその解説)。コンテナ/行/列にはそれぞれ別の色のボーダーを設定しているが、結果的に同じ領域になるため3つ重なって表示される。</p>
</div>
<div class="container border">
<div class="row border border-danger">
<div class="col border border-primary">
<div class="bg-light">
<ul class="mb-0">
<li>親: コンテナ <code>div.container</code> (灰色ボーダー)
<ul>
<li>ガターを設定: <code>padding-(left|right): 15px</code></li>
</ul>
</li>
<li>子: 行 <code>div.row</code> (赤ボーダー)
<ul>
<li>ガターをキャンセル: <code>margin-(left|right) : -15px</code></li>
<li>パディングなし: <code>padding-(left|right): 0</code></li>
</ul>
</li>
<li>孫: 列 <code>div.col</code> (青ボーダー)
<ul>
<li>マージンなし: <code>margin-(left|right): 0</code></li>
<li>ガターを(再)設定: <code>padding-(left|right): 15px</code></li>
</ul>
</li>
<li>内部要素(この部分) (淡い背景色)</li>
</ul>
</div>
</div>
</div>
</div>
<div class="container">
<div class="alert alert-warning mt-3"><strong>注: </strong>特に <code>.row</code> で左右マージンに負の値を設定してガターをキャンセルしている点に注意。そのためコンテナ/行/列への横方向のマージン/パディング設定を行う場合は注意が必要。特に行の横マージン、列の横パディングを独自に設定するとガターの設定を壊してしまい、予測外の結果になることが多い。</div>
<h4 class="mt-4" id="grid-equal-width"><a href="https://getbootstrap.com/docs/4.2/layout/grid/#equal-width" target="_blank">列の等分配置</a>
</h4>
<p class="my-2">行 <code>div.row</code> の中に列 <code>div.col</code> を複数用いると行の中に等分配置する。行の幅や内部要素の幅、種類などから一行に入る列の最大数をブラウザが判定し、それを超えると次の行に折り返す。</p>
<p class="my-2">次は環境別の最大個数確認用に作った例(20個まで)。</p>
<div class="alert alert-info" role="alert">以下の例ではレイアウトの内部構造が分かるように列 <code>div.col*</code> に<a href="utilities-1.html#borders-border">ボーダー </a><code>.border</code>を付け、さらにコンテンツ領域と左右余白(ガター)の設定状態を表示するためコンテント領域に薄い<a href="utilities-2.html#colors-background-color">背景色 </a><code>.bg-light</code> を付けている。</div>
<div class="row my-2">
<div class="col border">
<div class="bg-light">1/1</div>
</div>
</div>
<div class="row my-2">
<div class="col border">
<div class="bg-light">1/2</div>
</div>
<div class="col border">
<div class="bg-light">2/2</div>
</div>
</div>
<div class="row my-2">
<div class="col border">
<div class="bg-light">1/3</div>
</div>
<div class="col border">
<div class="bg-light">2/3</div>
</div>
<div class="col border">
<div class="bg-light">3/3</div>
</div>
</div>
<div class="row my-2">
<div class="col border">
<div class="bg-light">1/4</div>
</div>
<div class="col border">
<div class="bg-light">2/4</div>
</div>
<div class="col border">
<div class="bg-light">3/4</div>
</div>
<div class="col border">
<div class="bg-light">4/4</div>
</div>
</div>
<div class="row my-2">
<div class="col border">
<div class="bg-light">1/5</div>
</div>
<div class="col border">
<div class="bg-light">2/5</div>
</div>
<div class="col border">
<div class="bg-light">3/5</div>
</div>
<div class="col border">
<div class="bg-light">4/5</div>
</div>
<div class="col border">
<div class="bg-light">5/5</div>
</div>
</div>
<div class="row my-2">
<div class="col border">
<div class="bg-light">1/6</div>
</div>
<div class="col border">
<div class="bg-light">2/6</div>
</div>
<div class="col border">
<div class="bg-light">3/6</div>
</div>
<div class="col border">
<div class="bg-light">4/6</div>
</div>
<div class="col border">
<div class="bg-light">5/6</div>
</div>
<div class="col border">
<div class="bg-light">6/6</div>
</div>
</div>
<div class="row my-2">
<div class="col border">
<div class="bg-light">1/7</div>
</div>
<div class="col border">
<div class="bg-light">2/7</div>
</div>
<div class="col border">
<div class="bg-light">3/7</div>
</div>
<div class="col border">
<div class="bg-light">4/7</div>
</div>
<div class="col border">
<div class="bg-light">5/7</div>
</div>
<div class="col border">
<div class="bg-light">6/7</div>
</div>
<div class="col border">
<div class="bg-light">7/7</div>
</div>
</div>
<div class="row my-2">
<div class="col border">
<div class="bg-light">1/8</div>
</div>
<div class="col border">
<div class="bg-light">2/8</div>
</div>
<div class="col border">
<div class="bg-light">3/8</div>
</div>
<div class="col border">
<div class="bg-light">4/8</div>
</div>
<div class="col border">
<div class="bg-light">5/8</div>
</div>
<div class="col border">
<div class="bg-light">6/8</div>
</div>
<div class="col border">
<div class="bg-light">7/8</div>
</div>
<div class="col border">
<div class="bg-light">8/8</div>
</div>
</div>
<div class="row my-2">
<div class="col border">
<div class="bg-light">1/9</div>
</div>
<div class="col border">
<div class="bg-light">2/9</div>
</div>
<div class="col border">
<div class="bg-light">3/9</div>
</div>
<div class="col border">
<div class="bg-light">4/9</div>
</div>
<div class="col border">
<div class="bg-light">5/9</div>
</div>
<div class="col border">
<div class="bg-light">6/9</div>
</div>
<div class="col border">
<div class="bg-light">7/9</div>
</div>
<div class="col border">
<div class="bg-light">8/9</div>
</div>
<div class="col border">
<div class="bg-light">9/9</div>
</div>
</div>
<div class="row my-2">
<div class="col border">
<div class="bg-light">1/10</div>
</div>
<div class="col border">
<div class="bg-light">2/10</div>
</div>
<div class="col border">
<div class="bg-light">3/10</div>
</div>
<div class="col border">
<div class="bg-light">4/10</div>
</div>
<div class="col border">
<div class="bg-light">5/10</div>
</div>
<div class="col border">
<div class="bg-light">6/10</div>
</div>
<div class="col border">
<div class="bg-light">7/10</div>
</div>
<div class="col border">
<div class="bg-light">8/10</div>
</div>
<div class="col border">
<div class="bg-light">9/10</div>
</div>
<div class="col border">
<div class="bg-light">10/10</div>
</div>
</div>
<div class="row my-2">
<div class="col border">
<div class="bg-light">1/11</div>
</div>
<div class="col border">
<div class="bg-light">2/11</div>
</div>
<div class="col border">
<div class="bg-light">3/11</div>
</div>
<div class="col border">
<div class="bg-light">4/11</div>
</div>
<div class="col border">
<div class="bg-light">5/11</div>
</div>
<div class="col border">
<div class="bg-light">6/11</div>
</div>
<div class="col border">
<div class="bg-light">7/11</div>
</div>
<div class="col border">
<div class="bg-light">8/11</div>
</div>
<div class="col border">
<div class="bg-light">9/11</div>
</div>
<div class="col border">
<div class="bg-light">10/11</div>
</div>
<div class="col border">
<div class="bg-light">11/11</div>
</div>
</div>
<div class="row my-2">
<div class="col border">
<div class="bg-light">1/12</div>
</div>
<div class="col border">
<div class="bg-light">2/12</div>
</div>
<div class="col border">
<div class="bg-light">3/12</div>
</div>
<div class="col border">
<div class="bg-light">4/12</div>
</div>
<div class="col border">
<div class="bg-light">5/12</div>
</div>
<div class="col border">
<div class="bg-light">6/12</div>
</div>
<div class="col border">
<div class="bg-light">7/12</div>
</div>
<div class="col border">
<div class="bg-light">8/12</div>
</div>
<div class="col border">
<div class="bg-light">9/12</div>
</div>
<div class="col border">
<div class="bg-light">10/12</div>
</div>
<div class="col border">
<div class="bg-light">11/12</div>
</div>
<div class="col border">
<div class="bg-light">12/12</div>
</div>
</div>
<div class="row my-2">
<div class="col border">
<div class="bg-light">1/13</div>
</div>
<div class="col border">
<div class="bg-light">2/13</div>
</div>
<div class="col border">
<div class="bg-light">3/13</div>
</div>
<div class="col border">
<div class="bg-light">4/13</div>
</div>
<div class="col border">
<div class="bg-light">5/13</div>
</div>
<div class="col border">
<div class="bg-light">6/13</div>
</div>
<div class="col border">
<div class="bg-light">7/13</div>
</div>
<div class="col border">
<div class="bg-light">8/13</div>
</div>
<div class="col border">
<div class="bg-light">9/13</div>
</div>
<div class="col border">
<div class="bg-light">10/13</div>
</div>
<div class="col border">
<div class="bg-light">11/13</div>
</div>
<div class="col border">
<div class="bg-light">12/13</div>
</div>
<div class="col border">
<div class="bg-light">13/13</div>
</div>
</div>
<div class="row my-2">
<div class="col border">
<div class="bg-light">1/14</div>
</div>
<div class="col border">
<div class="bg-light">2/14</div>
</div>
<div class="col border">
<div class="bg-light">3/14</div>
</div>
<div class="col border">
<div class="bg-light">4/14</div>
</div>
<div class="col border">
<div class="bg-light">5/14</div>
</div>
<div class="col border">
<div class="bg-light">6/14</div>
</div>
<div class="col border">
<div class="bg-light">7/14</div>
</div>
<div class="col border">
<div class="bg-light">8/14</div>
</div>
<div class="col border">
<div class="bg-light">9/14</div>
</div>
<div class="col border">
<div class="bg-light">10/14</div>
</div>
<div class="col border">
<div class="bg-light">11/14</div>
</div>
<div class="col border">
<div class="bg-light">12/14</div>
</div>
<div class="col border">
<div class="bg-light">13/14</div>
</div>
<div class="col border">
<div class="bg-light">14/14</div>
</div>
</div>
<div class="row my-2">
<div class="col border">
<div class="bg-light">1/15</div>
</div>
<div class="col border">
<div class="bg-light">2/15</div>
</div>
<div class="col border">
<div class="bg-light">3/15</div>
</div>
<div class="col border">
<div class="bg-light">4/15</div>
</div>
<div class="col border">
<div class="bg-light">5/15</div>
</div>
<div class="col border">
<div class="bg-light">6/15</div>
</div>
<div class="col border">
<div class="bg-light">7/15</div>
</div>
<div class="col border">
<div class="bg-light">8/15</div>
</div>
<div class="col border">
<div class="bg-light">9/15</div>
</div>
<div class="col border">
<div class="bg-light">10/15</div>
</div>
<div class="col border">
<div class="bg-light">11/15</div>
</div>
<div class="col border">
<div class="bg-light">12/15</div>
</div>
<div class="col border">
<div class="bg-light">13/15</div>
</div>
<div class="col border">
<div class="bg-light">14/15</div>
</div>
<div class="col border">
<div class="bg-light">15/15</div>
</div>
</div>
<div class="row my-2">
<div class="col border">
<div class="bg-light">1/16</div>
</div>
<div class="col border">
<div class="bg-light">2/16</div>
</div>
<div class="col border">
<div class="bg-light">3/16</div>
</div>
<div class="col border">
<div class="bg-light">4/16</div>
</div>
<div class="col border">
<div class="bg-light">5/16</div>
</div>
<div class="col border">
<div class="bg-light">6/16</div>
</div>
<div class="col border">
<div class="bg-light">7/16</div>
</div>
<div class="col border">
<div class="bg-light">8/16</div>
</div>
<div class="col border">
<div class="bg-light">9/16</div>
</div>
<div class="col border">
<div class="bg-light">10/16</div>
</div>
<div class="col border">
<div class="bg-light">11/16</div>
</div>
<div class="col border">
<div class="bg-light">12/16</div>
</div>
<div class="col border">
<div class="bg-light">13/16</div>
</div>
<div class="col border">
<div class="bg-light">14/16</div>
</div>
<div class="col border">
<div class="bg-light">15/16</div>
</div>
<div class="col border">
<div class="bg-light">16/16</div>
</div>
</div>
<div class="row my-2">
<div class="col border">
<div class="bg-light">1/17</div>
</div>
<div class="col border">
<div class="bg-light">2/17</div>
</div>
<div class="col border">
<div class="bg-light">3/17</div>
</div>
<div class="col border">
<div class="bg-light">4/17</div>
</div>
<div class="col border">
<div class="bg-light">5/17</div>
</div>
<div class="col border">
<div class="bg-light">6/17</div>
</div>
<div class="col border">
<div class="bg-light">7/17</div>
</div>
<div class="col border">
<div class="bg-light">8/17</div>
</div>
<div class="col border">
<div class="bg-light">9/17</div>
</div>
<div class="col border">
<div class="bg-light">10/17</div>
</div>
<div class="col border">
<div class="bg-light">11/17</div>
</div>
<div class="col border">
<div class="bg-light">12/17</div>
</div>
<div class="col border">
<div class="bg-light">13/17</div>
</div>
<div class="col border">
<div class="bg-light">14/17</div>
</div>
<div class="col border">
<div class="bg-light">15/17</div>
</div>
<div class="col border">
<div class="bg-light">16/17</div>
</div>
<div class="col border">
<div class="bg-light">17/17</div>
</div>
</div>
<div class="row my-2">
<div class="col border">
<div class="bg-light">1/18</div>
</div>
<div class="col border">
<div class="bg-light">2/18</div>
</div>
<div class="col border">
<div class="bg-light">3/18</div>
</div>
<div class="col border">
<div class="bg-light">4/18</div>
</div>
<div class="col border">
<div class="bg-light">5/18</div>
</div>
<div class="col border">
<div class="bg-light">6/18</div>
</div>
<div class="col border">
<div class="bg-light">7/18</div>
</div>
<div class="col border">
<div class="bg-light">8/18</div>
</div>
<div class="col border">
<div class="bg-light">9/18</div>
</div>
<div class="col border">
<div class="bg-light">10/18</div>
</div>
<div class="col border">
<div class="bg-light">11/18</div>
</div>
<div class="col border">
<div class="bg-light">12/18</div>
</div>
<div class="col border">
<div class="bg-light">13/18</div>
</div>
<div class="col border">
<div class="bg-light">14/18</div>
</div>
<div class="col border">
<div class="bg-light">15/18</div>
</div>
<div class="col border">
<div class="bg-light">16/18</div>
</div>
<div class="col border">
<div class="bg-light">17/18</div>
</div>
<div class="col border">
<div class="bg-light">18/18</div>
</div>
</div>
<div class="row my-2">
<div class="col border">
<div class="bg-light">1/19</div>
</div>
<div class="col border">
<div class="bg-light">2/19</div>
</div>
<div class="col border">
<div class="bg-light">3/19</div>
</div>
<div class="col border">
<div class="bg-light">4/19</div>
</div>
<div class="col border">
<div class="bg-light">5/19</div>
</div>
<div class="col border">
<div class="bg-light">6/19</div>
</div>
<div class="col border">
<div class="bg-light">7/19</div>
</div>
<div class="col border">
<div class="bg-light">8/19</div>
</div>
<div class="col border">
<div class="bg-light">9/19</div>
</div>
<div class="col border">
<div class="bg-light">10/19</div>
</div>
<div class="col border">
<div class="bg-light">11/19</div>
</div>
<div class="col border">
<div class="bg-light">12/19</div>
</div>
<div class="col border">
<div class="bg-light">13/19</div>
</div>
<div class="col border">
<div class="bg-light">14/19</div>
</div>
<div class="col border">
<div class="bg-light">15/19</div>
</div>
<div class="col border">
<div class="bg-light">16/19</div>
</div>
<div class="col border">
<div class="bg-light">17/19</div>
</div>
<div class="col border">
<div class="bg-light">18/19</div>
</div>
<div class="col border">
<div class="bg-light">19/19</div>
</div>
</div>
<div class="row my-2">
<div class="col border">
<div class="bg-light">1/20</div>
</div>
<div class="col border">
<div class="bg-light">2/20</div>
</div>
<div class="col border">
<div class="bg-light">3/20</div>
</div>
<div class="col border">
<div class="bg-light">4/20</div>
</div>
<div class="col border">
<div class="bg-light">5/20</div>
</div>
<div class="col border">
<div class="bg-light">6/20</div>
</div>
<div class="col border">
<div class="bg-light">7/20</div>
</div>
<div class="col border">
<div class="bg-light">8/20</div>
</div>
<div class="col border">
<div class="bg-light">9/20</div>
</div>
<div class="col border">
<div class="bg-light">10/20</div>
</div>
<div class="col border">
<div class="bg-light">11/20</div>
</div>
<div class="col border">
<div class="bg-light">12/20</div>
</div>
<div class="col border">
<div class="bg-light">13/20</div>
</div>
<div class="col border">
<div class="bg-light">14/20</div>
</div>
<div class="col border">
<div class="bg-light">15/20</div>
</div>
<div class="col border">
<div class="bg-light">16/20</div>
</div>
<div class="col border">
<div class="bg-light">17/20</div>
</div>
<div class="col border">
<div class="bg-light">18/20</div>
</div>
<div class="col border">
<div class="bg-light">19/20</div>
</div>
<div class="col border">
<div class="bg-light">20/20</div>
</div>
</div>
<p class="mt-3 mb-2">構造は次の通り(以下すべて親のコンテナ <code>div.container</code> は省略)。</p>
<ul class="struct mt-2">
<li><code>div.row</code>
<ul>
<li><code>div.col</code> (×設定個数: 1..16)
<ul>
<li class="txt">テキスト <code>{行内index}/{設定個数}</code></li>
</ul>
</li>
</ul>
</li>
</ul>
<h4 class="mt-4" id="grid-equal-width-multi-row"><a target="_blank">折り返し(改行)</a>
</h4>
<p class="my-2"><code>div.col</code> を用いた等分配置で、特定位置で折り返す場合は中身が空の <code>div.w-100</code> を挿入する。</p>
<div class="row mb-3">
<div class="col border">
<div class="bg-light"><code>.row</code></div>
</div>
<div class="col border">
<div class="bg-light"><code>.row</code><span class="float-right">⇒ <code>.w-100</code></span></div>
</div>
<div class="w-100"></div>
<div class="col border">
<div class="bg-light"><code>.row</code></div>
</div>
<div class="col border">
<div class="bg-light"><code>.row</code></div>
</div>
<div class="col border">
<div class="bg-light"><code>.row</code><span class="float-right">⇒ <code>.w-100</code></span></div>
</div>
<div class="w-100"></div>
<div class="col border">
<div class="bg-light"><code>.row</code></div>
</div>
<div class="col border">
<div class="bg-light"><code>.row</code></div>
</div>
<div class="col border">
<div class="bg-light"><code>.row</code></div>
</div>
<div class="col border">
<div class="bg-light"><code>.row</code></div>
</div>
</div>
<div class="my-3"><a class="btn btn-outline-info" data-toggle="collapse" href="#grid-equal-width-multi-row-structure" aria-control="#grid-equal-width-multi-row-structure" aria-expanded="false">構造</a>
</div>
<ul class="struct collapse" id="grid-equal-width-multi-row-structure">
<li><code>div.row</code>
<ul>
<li><code>div.col</code> (×2)</li>
<li><code>div.w-100</code> (強制折り返し)</li>
<li><code>div.col</code> (×3)</li>
<li><code>div.w-100</code> (強制折り返し)</li>
<li><code>div.col</code> (×4)</li>
</ul>
</li>
</ul>
<h4 class="mt-4" id="grid-column-width"><a href="https://getbootstrap.com/docs/4.2/layout/grid/#setting-one-column-width" target="_blank">列の幅指定(1/12ステップ)</a>
</h4>
<p class="my-2"><code>div.col-(1|2|3|4|5|6|7|8|9|10|11|12)</code></p>
<div class="row">
<div class="col-1 border">
<div class="bg-light"><code>.col-1</code></div>
</div>
</div>
<div class="row">
<div class="col-2 border">
<div class="bg-light"><code>.col-2</code></div>
</div>
</div>
<div class="row">
<div class="col-3 border">
<div class="bg-light"><code>.col-3</code></div>
</div>
</div>
<div class="row">
<div class="col-4 border">
<div class="bg-light"><code>.col-4</code></div>
</div>
</div>
<div class="row">
<div class="col-5 border">
<div class="bg-light"><code>.col-5</code></div>
</div>
</div>
<div class="row">
<div class="col-6 border">
<div class="bg-light"><code>.col-6</code></div>
</div>
</div>
<div class="row">
<div class="col-7 border">
<div class="bg-light"><code>.col-7</code></div>
</div>
</div>
<div class="row">
<div class="col-8 border">
<div class="bg-light"><code>.col-8</code></div>
</div>
</div>
<div class="row">
<div class="col-9 border">
<div class="bg-light"><code>.col-9</code></div>
</div>
</div>
<div class="row">
<div class="col-10 border">
<div class="bg-light"><code>.col-10</code></div>
</div>
</div>
<div class="row">
<div class="col-11 border">
<div class="bg-light"><code>.col-11</code></div>
</div>
</div>
<div class="row">
<div class="col-12 border">
<div class="bg-light"><code>.col-12</code></div>
</div>
</div>
<h5 class="mt-4" id="grid-mixing-fixed-and-equal">固定幅と等分の組み合わせ</h5>
<div class="row">
<div class="col border">
<div class="bg-light"><code>.col</code> (1/6)</div>
</div>