نمط فارغالملكية الخلايا
مثال
تغيير طريقة إظهار الخلايا الفارغة:
function show()
{
document.getElementById("myTable").style.emptyCells = "show";
}
function hide()
{
document.getElementById("myTable").style.emptyCells = "hide";
}
التعريف والاستخدام
تعيّن الخاصية blankCells أو ترجع ما إذا كان سيتم إظهار حدود وخلفية الخلايا الفارغة أم لا.
دعم المتصفح
Property | |||||
---|---|---|---|---|---|
emptyCells | Yes | Yes | Yes | Yes | Yes |
بناء الجملة
إعادة خاصية الخلايا الفارغة:
object.style.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 |
تفاصيل تقنية
القيمة الافتراضية: | تبين |
---|---|
قيمة الإرجاع: | سلسلة ، تمثل حدود الخلايا الفارغة وخلفيتها |
إصدار CSS | CSS2 |
مزيد من الأمثلة
مثال
إعادة خاصية الخلايا الفارغة:
alert(document.getElementById("myTable").style.emptyCells);
الصفحات ذات الصلة
دروس CSS: جدول CSS
مرجع CSS: خاصية الخلايا الفارغة
❮ نمط الكائن