عمود النمط _
مثال
قسّم النص في عنصر div إلى ثلاثة أعمدة:
document.getElementById("myDIV").style.columnCount = 3;
التعريف والاستخدام
تحدد خاصية columnCount عدد الأعمدة التي يجب تقسيم العنصر إليها.
دعم المتصفح
Property | |||||
---|---|---|---|---|---|
columnCount | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
بناء الجملة
إعادة العمودالعدد الممتلكات:
object.style.columnCount
قم بتعيين الخاصية columnCount:
object.style.columnCount = "number|auto|initial|inherit"
قيم الملكية
Value | Description |
---|---|
number | The optimal number of columns into which the content of the element will be flowed |
auto | Default value. The number of columns will be determined by other properties, like e.g. "column-width" |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
تفاصيل تقنية
القيمة الافتراضية: | تلقاءي |
---|---|
قيمة الإرجاع: | سلسلة ، تمثل خاصية عدد الأعمدة لعنصر |
إصدار CSS | CSS3 |
الصفحات ذات الصلة
البرنامج التعليمي لـ CSS3: أعمدة متعددة لـ CSS3
مرجع CSS: خاصية عدد الأعمدة
❮ نمط الكائن