خاصية CSS border-bottom
مثال
عيّن نمط الحد السفلي لعناصر مختلفة:
h1 {
border-bottom: 5px solid red;
}
h2 {
border-bottom: 4px dotted blue;
}
div {
border-bottom: double;
}
التعريف والاستخدام
الخاصية هي border-bottom
خاصية مختصرة لـ (بالترتيب التالي):
إذا تم حذف لون الحد السفلي ، فسيكون اللون المطبق هو لون النص.
القيمة الافتراضية: | متوسط بلا لون |
---|---|
وارث: | رقم |
متحرك: | نعم ، انظر الخصائص الفردية . اقرأ عن animatable |
الإصدار: | CSS1 |
بناء جملة JavaScript: | الكائن .style.borderBottom = "15 بكسل منقط أزرق فاتح" |
دعم المتصفح
تحدد الأرقام الواردة في الجدول إصدار المتصفح الأول الذي يدعم الخاصية بالكامل.
Property | |||||
---|---|---|---|---|---|
border-bottom | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
بنية CSS
border-bottom: border-width border-style border-color|initial|inherit;
قيم الملكية
Value | Description |
---|---|
border-bottom-width | Required. Specifies the width of the bottom border. Default value is "medium" |
border-bottom-style | Required. Specifies the style of the bottom border. Default value is "none" |
border-bottom-color | Optional. Specifies the color of the bottom border. Default value is the color of the text |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
الصفحات ذات الصلة
دروس CSS: CSS Border
مرجع DOM HTML: خاصية borderBottom