उदाहरण
emptyCells प्रॉपर्टी से टेबल में खाली सेल्स के बॉर्डर और बैकग्राउंड दिखाएं या छिपाएं।
<!DOCTYPE html>
<html>
<head>
<style>
table, td {
border: 1px solid;
}
</style>
</head>
<body>
<table id="myID" style="empty-cells:hide;">
<tr>
<td>एक</td>
<td>111</td>
</tr>
<tr>
<td>दो</td>
<td>222</td>
</tr>
<tr>
<td>तीन</td>
<td></td>
</tr>
</table>
<br>
<button type="button" onclick="display()">लौटाएं</button>
<script>
function display() {
document.write(document.getElementById("myID").style.emptyCells);
}
</script>
</body>
</html>
मान: show (डिफ़ॉल्ट), hide। केवल border-collapse: separate (डिफ़ॉल्ट) पर काम करता है।