خاصية لون الحد السفلي في CSS
مثال
عيّن لونًا للحد السفلي:
div {border-bottom-color: coral;}
المزيد من الأمثلة "جربها بنفسك" أدناه.
التعريف والاستخدام
تحدد الخاصية لون border-bottom-color
الحد السفلي للعنصر.
ملاحظة: قم دائمًا بتعريف نمط الحدود أو
خاصية نمط الحد السفلي قبل border-bottom-color
الخاصية. يجب أن يكون للعنصر حد قبل أن تتمكن من تغيير اللون.
القيمة الافتراضية: | اللون الحالي للعنصر |
---|---|
وارث: | رقم |
متحرك: | نعم. اقرأ عن animatable |
الإصدار: | CSS1 |
بناء جملة JavaScript: | الكائن .style.borderBottomColor = "أزرق" |
دعم المتصفح
تحدد الأرقام الواردة في الجدول إصدار المتصفح الأول الذي يدعم الخاصية بالكامل.
Property | |||||
---|---|---|---|---|---|
border-bottom-color | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
بنية CSS
border-bottom-color: color|transparent|initial|inherit;
قيم الملكية
Value | Description | Play it |
---|---|---|
color | Specifies the color of the bottom border. Look at CSS Color Values for a complete list of possible color values. Default color is the current color of the element | |
transparent | Specifies that the border color should be transparent | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
مزيد من الأمثلة
مثال
عيّن لونًا للحد السفلي بقيمة HEX:
div {border-bottom-color: #92a8d1;}
مثال
عيّن لونًا للحد السفلي بقيمة RGB:
div {border-bottom-color: rgb(201, 76, 76);}
مثال
عيّن لونًا للحد السفلي بقيمة RGBA:
div {border-bottom-color: rgba(201, 76, 76, 0.3);}
مثال
عيّن لونًا للحد السفلي بقيمة HSL:
div {border-bottom-color: hsl(89, 43%, 51%);}
مثال
عيّن لونًا للحد السفلي بقيمة HSLA:
div {border-bottom-color: hsla(89, 43%, 51%, 0.3);}
مثال
قم بتعيين حد سفلي شفاف:
div {border-bottom-color: transparent;}
الصفحات ذات الصلة
دروس CSS: CSS Border
مرجع CSS: خاصية border-bottom
مرجع DOM HTML: خاصية borderBottomColor