خاصية نمط قائمة CSS
مثال
حدد جميع خصائص القائمة في إعلان واحد:
ul
{
list-style: square inside url("sqpurple.gif");
}
التعريف والاستخدام
الخاصية هي اختصار list-style
للخصائص التالية:
إذا كانت إحدى القيم مفقودة ، فسيتم استخدام القيمة الافتراضية لتلك الخاصية.
القيمة الافتراضية: | القرص خارج لا شيء |
---|---|
وارث: | نعم |
متحرك: | رقم. اقرأ عن animatable |
الإصدار: | CSS1 |
بناء جملة JavaScript: | الكائن .style.listStyle = "عشري بالداخل" |
دعم المتصفح
تحدد الأرقام الواردة في الجدول إصدار المتصفح الأول الذي يدعم الخاصية بالكامل.
Property | |||||
---|---|---|---|---|---|
list-style | 1.0 | 4.0 | 1.0 | 1.0 | 7.0 |
بنية CSS
list-style: list-style-type list-style-position list-style-image|initial|inherit;
قيم الملكية
Value | Description |
---|---|
list-style-type | Specifies the type of list-item marker. Default value is "disc" |
list-style-position | Specifies where to place the list-item marker. Default value is "outside" |
list-style-image | Specifies the type of list-item marker. Default value is "none" |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
الصفحات ذات الصلة
دروس CSS: قائمة CSS
مرجع HTML DOM: خاصية listStyle