Propiedad de estilo celdas vacías
Ejemplo
Cambiar cómo se muestran las celdas vacías:
function show()
{
document.getElementById("myTable").style.emptyCells = "show";
}
function hide()
{
document.getElementById("myTable").style.emptyCells = "hide";
}
Definición y uso
La propiedad emptyCells establece o devuelve si mostrar o no el borde y el fondo de las celdas vacías.
Compatibilidad con navegador
Property | |||||
---|---|---|---|---|---|
emptyCells | Yes | Yes | Yes | Yes | Yes |
Sintaxis
Devuelve la propiedad celdas vacías:
object.style.emptyCells
Establezca la propiedad celdas vacías:
object.style.emptyCells = "show|hide|initial|inherit"
Valores de propiedad
Value | Description |
---|---|
show | Border and background are shown in empty cells. This is default |
hide | Border and background are hidden in empty cells |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Detalles técnicos
Valor por defecto: | show |
---|---|
Valor devuelto: | Una cadena, que representa el borde y el fondo de las celdas vacías |
Versión CSS | CSS2 |
Más ejemplos
Ejemplo
Devuelve la propiedad celdas vacías:
alert(document.getElementById("myTable").style.emptyCells);
páginas relacionadas
Tutorial CSS: Tabla CSS
Referencia CSS: propiedad de celdas vacías
❮ Objeto de estilo