CSS جميع الممتلكات
مثال
غيّر كل الخصائص المطبقة على العنصر أو أصل العنصر إلى قيمته الأولية:
div
{
background-color: yellow;
color: red;
all: initial;
}
التعريف والاستخدام
تعيد all
الخاصية تعيين جميع الخصائص ، باستثناء unicode-bidi والاتجاه ، إلى قيمتها الأولية أو الموروثة.
القيمة الافتراضية: | لا أحد |
---|---|
وارث: | رقم |
متحرك: | رقم. اقرأ عن animatable |
الإصدار: | CSS3 |
بناء جملة JavaScript: | الكائن .style.all = "الأولي" |
دعم المتصفح
تحدد الأرقام الواردة في الجدول إصدار المتصفح الأول الذي يدعم الخاصية بالكامل.
Property | |||||
---|---|---|---|---|---|
all | 37.0 | 79.0 | 27.0 | 9.1 | 24.0 |
بنية CSS
all: initial|inherit|unset;
قيم الملكية
Value | Description |
---|---|
initial | Changes all the properties applied to the element or the element's parent to their initial value |
inherit | Changes all the properties applied to the element or the element's parent to their parent value |
unset | Changes all the properties applied to the element or the element's parent to their parent value if they are inheritable or to their initial value if not |