خصائص border-left-width CSS
- الصفحة السابقة border-left-style
- الصفحة التالية border-radius
Definition and Usage
The border-left-width property sets the width of the element's left border.
It only takes effect when the border style is not none. If the border style is none, the border width is actually reset to 0. Negative length values are not allowed.
ملاحظة:Always declare the border-style property before the border-left-width property. The element must have a border before it can change its border width.
See also:
Tutorial:حافات CSS
Reference:خصائص border-left CSS
Reference:خصائص borderLeftWidth HTML DOM
Example
Set the border-left-width:
p { border-style:solid; border-left-width:15px; }
CSS Syntax
border-left-width: medium|thin|thick|length|initial|inherit;
Property Value
Value | Description |
---|---|
thin | تعريف الحد الأيسر رقيق. |
medium | Default Value. تعريف الحد الأيسر متوسط. |
thick | تعريف الحد الأيسر سميك. |
length | يسمح لك بتعريف عرض الجانب الأيسر للحدود. |
inherit | 规定了应该从父元素继承边框宽度。 |
Technical Details
Default Value: | medium |
---|---|
Inheritance: | no |
Version: | CSS1 |
JavaScript Syntax: | object.style.borderLeftWidth="thick" |
مزيد من الأمثلة
- ضبط عرض الجانب الأيسر للحدود
- هذا المثال يوضح كيفية ضبط عرض الجانب الأيسر للحدود.
دعم المتصفح
الرقم في الجدول يوضح الإصدار الأول من المتصفح الذي يدعم هذه الخاصية بالكامل.
Chrome | IE / Edge | Firefox | Safari | Opera |
---|---|---|---|---|
1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
ملاحظة:بrowsers الإصدار IE7 وأقل لا يدعم القيمة "inherit". الإصدار IE8 يتطلب !DOCTYPE. الإصدار IE9 يدعم "inherit".
- الصفحة السابقة border-left-style
- الصفحة التالية border-radius