Diseño de tablas básica a avanzadas
Así es como la clase .table muestra las tablas por defecto.
| # | Nombre | Apellidos | Hashtag |
|---|---|---|---|
| 1 | Mark | Otto | @mdo |
| 2 | Jacob | Thornton | @fat |
| 3 | Larry | the Bird |
Similar a otras tablas, usa la clase .thead-claro o .thead-oscuro para poner en el <thead> apariencia clara u oscura.
| # | Nombre | Apellidos | Hashtag |
|---|---|---|---|
| 1 | Mark | Otto | @mdo |
| 2 | Jacob | Thornton | @fat |
| 3 | Larry | the Bird |
Usa .table-striped en la clase <table> para hacer el efecto cebra en las filas.
| # | Nombre | Apellidos | Hashtag |
|---|---|---|---|
| 1 | Mark | Otto | @mdo |
| 2 | Jacob | Thornton | @fat |
| 3 | Larry | the Bird |
Usa .table-bordered en la clase <table> para poner borde a las celdas.
| # | Nombre | Apellidos |
|---|---|---|
| 1 | Mark | Otto |
| 2 | Jacob | Thornton |
| 3 | Larry | the Bird |
Usa .table-borderless en la clase <table> para eliminar los bordes de las celdas.
| # | Nombre | Apellidos | Hashtag |
|---|---|---|---|
| 1 | Mark | Otto | @mdo |
| 2 | Jacob | Thornton | @fat |
| 3 | Larry | the Bird |
Usa .table-hover en la classe <table> para habilitar el efecto hover en las filas.
| # | Nombre | Apellidos | Hashtag |
|---|---|---|---|
| 1 | Mark | Otto | @mdo |
| 2 | Jacob | Thornton | @fat |
| 3 | Larry | the Bird |
Añade .table-condensed para hacer mas pequeña la tabla.
| # | Nombre | Apellidos | Hashtag | |
|---|---|---|---|---|
| 1 | Mark | Otto | @mdo | |
| 2 | Jacob | Thornton | @fat | |
| 3 | Larry | the Bird |
Usa .table-s-height o .table-xs-height en la clase <table> para hacer que las alturas de las filas se reduzcan. Es como table-condensed pero con otras las alturas.
| # | Nombre | Apellidos |
|---|---|---|
| 1 | Mark | Otto |
| 2 | Jacob | Thornton |
| 3 | Larry | the Bird |
| # | Nombre | Apellidos |
|---|---|---|
| 1 | Mark | Otto |
| 2 | Jacob | Thornton |
| 3 | Larry | the Bird |
Colocar un div con la clase .table-responsive por encima de la tabla. Para que la aplique en una resolución menor que escritorio añadir .lower-resolution.
Añadir las clases .azul,.verde,.amarillo y .rojo, dentro del <tr> para poner las filas de color.
| # | Nombre | Apellidos | Hashtag |
|---|---|---|---|
| 1 | Larry | the Bird | |
| 2 | Mark | Otto | @mdo |
| 3 | Jacob | Thornton | @fat |
| 4 | Larry | the Bird | |
| 5 | Larry | the Bird |
Colocar un div con la clase .table-responsive por encima de la tabla. Para que la aplique en una resolución menor que escritorio añadir .lower-resolution.