خاصية CSS على يسار الحدود
مثال
عيّن نمط الحد الأيسر لعناصر مختلفة:
h1 {
border-left: 5px solid red;
}
h2 {
border-left: 4px dotted blue;
}
div {
border-left: double;
}
التعريف والاستخدام
الخاصية هي border-left
خاصية مختصرة لـ (بالترتيب التالي):
إذا تم حذف لون الحد الأيسر ، فسيكون اللون المطبق هو لون النص.
القيمة الافتراضية: | متوسط بلا لون |
---|---|
وارث: | رقم |
متحرك: | نعم ، انظر الخصائص الفردية . اقرأ عن animatable |
الإصدار: | CSS1 |
بناء جملة JavaScript: | الكائن .style.borderLeft = "3 بكسل أزرق منقط" |
دعم المتصفح
تحدد الأرقام الواردة في الجدول إصدار المتصفح الأول الذي يدعم الخاصية بالكامل.
Property | |||||
---|---|---|---|---|---|
border-left | 1.0 | 4.0 | 1.0 | 3.5 | 1.0 |
بنية CSS
border-left: border-width border-style border-color|initial|inherit;
قيم الملكية
Value | Description |
---|---|
border-left-width | Optional. Specifies the width of the left border. Default value is "medium" |
border-left-style | Required. Specifies the style of the left border. Default value is "none" |
border-left-color | Optional. Specifies the color of the left 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: خاصية borderLeft