สไตล์emptyCellsคุณสมบัติ
ตัวอย่าง
เปลี่ยนวิธีแสดงเซลล์ว่าง:
function show()
{
document.getElementById("myTable").style.emptyCells = "show";
}
function hide()
{
document.getElementById("myTable").style.emptyCells = "hide";
}
ความหมายและการใช้งาน
ชุดคุณสมบัติ emptyCells หรือส่งคืนว่าจะแสดงเส้นขอบและพื้นหลังของเซลล์ว่างหรือไม่
รองรับเบราว์เซอร์
Property | |||||
---|---|---|---|---|---|
emptyCells | Yes | Yes | Yes | Yes | Yes |
ไวยากรณ์
ส่งคืนคุณสมบัติ emptyCells:
object.style.emptyCells
ตั้งค่าคุณสมบัติ emptyCells:
object.style.emptyCells = "show|hide|initial|inherit"
มูลค่าทรัพย์สิน
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 |
รายละเอียดทางเทคนิค
ค่าเริ่มต้น: | แสดง |
---|---|
คืนมูลค่า: | A String แทนเส้นขอบและพื้นหลังของเซลล์ว่าง |
เวอร์ชัน CSS | CSS2 |
ตัวอย่างเพิ่มเติม
ตัวอย่าง
ส่งคืนคุณสมบัติ emptyCells:
alert(document.getElementById("myTable").style.emptyCells);
หน้าที่เกี่ยวข้อง
กวดวิชา CSS: CSS Table
การอ้างอิง CSS: คุณสมบัติเซลล์ว่าง
❮ สไตล์วัตถุ