Style emptyCells 属性
- 지원 이전 페이지
- 다음 페이지 필터
- 上一层으로 돌아가기 HTML DOM Style 객체
实例
例子 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
브라우저 지원 | 크롬 | 에지 | 파이어폭스 | 사파리 |
---|---|---|---|---|
브라우저 지원 | 크롬 | 에지 | 파이어폭스 | 사파리 |
오페라 | 오페라 | 오페라 | 오페라 | 오페라 |
- 지원 이전 페이지
- 다음 페이지 필터
- 上一层으로 돌아가기 HTML DOM Style 객체