خاصية نمط الحدود اليسرى في CSS
مثال
عيّن نمطًا للحد الأيسر:
div {border-left-style: dotted;}
المزيد من الأمثلة "جربها بنفسك" أدناه.
التعريف والاستخدام
تحدد الخاصية نمط border-left-style
الحد الأيسر للعنصر.
القيمة الافتراضية: | لا أحد |
---|---|
وارث: | رقم |
متحرك: | رقم. اقرأ عن animatable |
الإصدار: | CSS1 |
بناء جملة JavaScript: | الكائن .style.borderLeftStyle = "منقط" |
دعم المتصفح
تحدد الأرقام الواردة في الجدول إصدار المتصفح الأول الذي يدعم الخاصية بالكامل.
Property | |||||
---|---|---|---|---|---|
border-left-style | 1.0 | 5.5 | 1.0 | 1.0 | 9.2 |
بنية CSS
border-left-style: none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|initial|inherit;
قيم الملكية
Value | Description | Play it |
---|---|---|
none | Specifies no border. This is default | |
hidden | The same as "none", except in border conflict resolution for table elements | |
dotted | Specifies a dotted border | |
dashed | Specifies a dashed border | |
solid | Specifies a solid border | |
double | Specifies a double border | |
groove | Specifies a 3D grooved border. The effect depends on the border-color value | |
ridge | Specifies a 3D ridged border. The effect depends on the border-color value | |
inset | Specifies a 3D inset border. The effect depends on the border-color value | |
outset | Specifies a 3D outset border. The effect depends on the border-color value | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
مزيد من الأمثلة
مثال
حد أيسر متقطع:
div {border-left-style: dashed;}
مثال
حد أيسر متصل:
div {border-left-style: solid;}
مثال
حد أيسر مزدوج:
div {border-left-style: double;}
مثال
قم بإزالة الحد الأيسر:
div {border-left-style: none;}
مثال
أخدود الحد الأيسر:
div {
border-left-style: groove;
border-left-color: coral;
border-left-width: 7px;
}
مثال
الحد الأيسر من التلال:
div {
border-left-style: ridge;
border-left-color: coral;
border-left-width: 7px;
}
مثال
حد أيسر داخلي:
div {
border-left-style: inset;
border-left-color: coral;
border-left-width: 7px;
}
مثال
حد خارجي أيسر:
div {
border-left-style: outset;
border-left-color: coral;
border-left-width: 7px;
}
الصفحات ذات الصلة
دروس CSS: CSS Border
مرجع CSS: خاصية حد اليسار
مرجع DOM HTML: خاصية borderLeftStyle