Stile proprietà emptyCells
Esempio
Modifica la modalità di visualizzazione delle celle vuote:
function show()
{
document.getElementById("myTable").style.emptyCells = "show";
}
function hide()
{
document.getElementById("myTable").style.emptyCells = "hide";
}
Definizione e utilizzo
La proprietà emptyCells imposta o restituisce se mostrare o meno il bordo e lo sfondo delle celle vuote.
Supporto browser
Property | |||||
---|---|---|---|---|---|
emptyCells | Yes | Yes | Yes | Yes | Yes |
Sintassi
Restituisce la proprietà emptyCells:
object.style.emptyCells
Imposta la proprietà emptyCells:
object.style.emptyCells = "show|hide|initial|inherit"
Valori di proprietà
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 |
Dettagli tecnici
Valore di default: | mostrare |
---|---|
Valore di ritorno: | Una stringa, che rappresenta il bordo e lo sfondo delle celle vuote |
Versione CSS | CSS2 |
Altri esempi
Esempio
Restituisce la proprietà emptyCells:
alert(document.getElementById("myTable").style.emptyCells);
Pagine correlate
Tutorial CSS: Tabella CSS
Riferimento CSS: proprietà a celle vuote
❮ Oggetto stile