Style emptyCells 屬性
- 上一页 display
- 下一页 filter
- 返回上一层 Objeto ng Style ng HTML DOM
實例
例子 1
更改空單元格的顯示方式:
function show() { document.getElementById("myTable").style.emptyCells = "show"; } function hide() { document.getElementById("myTable").style.emptyCells = "hide"; }
例子 2
返回 emptyCells 屬性:
alert(document.getElementById("myTable").style.emptyCells);
語法
返回 emptyCells 屬性:
object.style.emptyCells
設定 emptyCells 屬性:
object.style.emptyCells = "show|hide|initial|inherit"
屬性值
值 | 描述 |
---|---|
show | 在空單元格中顯示邊框和背景。默認。 |
hide | 在空單元格中隱藏邊框和背景。 |
initial | 將此屬性設定為其默認值。請參閱 initial。 |
inherit | 從其父元素繼承此屬性。請參閱 inherit。 |
技术细节
默认值: | show |
---|---|
返回值: | 字符串,表示空单元格的边框和背景。 |
CSS 版本: | CSS2 |
浏览器支持
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
支持 | 支持 | 支持 | 支持 | 支持 |
- 上一页 display
- 下一页 filter
- 返回上一层 Objeto ng Style ng HTML DOM