Bootstrap-pagination
提供:Dev Guides
ブートストラップ-ページネーション
この章では、Bootstrapがサポートするページネーション機能について説明します。 ページ区切り、順序付けられていないリストは、他の多くのインターフェイス要素と同様にBootstrapによって処理されます。
ページ付け
次の表に、ページネーションを処理するためにBootstrapが提供するクラスを示します。
Class | Description | Sample code |
---|---|---|
.pagination | Add this class to get the pagination on your page. | |
.disabled, .active | You can customize links by using .disabled *for unclickable links and .active* to indicate the current page. | |
.pagination-lg, .pagination-sm | Use these classes to get different size items. |
デフォルトのページネーション
次の例は、上の表で説明したクラス .pagination の使用を示しています-
州
次の例は、上記の表で説明したクラス .disabled、.active の使用を示しています-
サイジング
次の例は、サイズ変更のためのクラスの使用を示しています。上記の表で説明した* .pagination-**-
ページャ
テキストを超えるシンプルなページネーションリンクを作成する必要がある場合、ページャーは非常にうまく機能します。 ページネーションリンクと同様に、ページャーは順序付けられていないリストです。 デフォルトでは、リンクは中央に配置されます。 次の表に、Bootstrapがポケットベルに提供するクラスを示します。
Class | Description | Sample code |
---|---|---|
.pager | Add this class to get the pager links. | |
.previous, .next | Use class .previous *to left align and .next* to right-align the links. | |
.disabled | Add this class to get a muted look. |
デフォルトのポケットベル
次の例は、上の表で説明したクラス .pager の使用を示しています-
整列リンク
次の例は、上記の表で説明した、*。previous、.next *のアライメントのためのクラスの使用を示しています-
州
次の例は、上の表で説明したクラス .disabled の使用を示しています-