الخاصية border-left-style
< CSS
الخاصية border-left-style في CSS تُحدِّد شكل خط الإطار الأيسر الخاص بالعنصر.
بطاقة الخاصية
| القيمة الابتدائية | none
|
|---|---|
| تُطبَّق على | جميع العناصر. |
| قابلة للوراثة | لا |
| قابلة للتحريك | لا |
| القيمة المحسوبة | كما حُدِّدَت. |
/* الكلمات المحجوزة */
border-left-style: none;
border-left-style: hidden;
border-left-style: dotted;
border-left-style: dashed;
border-left-style: solid;
border-left-style: double;
border-left-style: groove;
border-left-style: ridge;
border-left-style: inset;
border-left-style: outset;
/* القيم العامة */
border-left-style: inherit;
border-left-style: initial;
border-left-style: unset;
ملاحظة: لا تُعرِّف المواصفة كيف ستلتقي الإطارات التي لها أشكال مختلفة في الزوايا.
أمثلة
هذا مثال عن جدول <table> يُبيّن مختلف أشكال الإطارات عبر الخاصية border-left-style. شيفرة HTML:
<table>
<tr>
<td class="b1">none</td>
<td class="b2">hidden</td>
<td class="b3">dotted</td>
<td class="b4">dashed</td>
</tr>
<tr>
<td class="b5">solid</td>
<td class="b6">double</td>
<td class="b7">groove</td>
<td class="b8">ridge</td>
</tr>
<tr>
<td class="b9">inset</td>
<td class="b10">outset</td>
</tr>
</table>
شيفرة CSS:
tr, td {
padding: 5px;
}
.b1 {border-left-style: none; }
.b2 {border-left-style: hidden; }
.b3 {border-left-style: dotted; }
.b4 {border-left-style: dashed; }
.b5 {border-left-style: solid; }
.b6 {border-left-style: double; }
.b7 {border-left-style: groove; }
.b8 {border-left-style: ridge; }
.b9 {border-left-style: inset; }
.b10 {border-left-style: outset; }
دعم المتصفحات
| الميزة | Chrome | Firefox | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| الدعم الأساسي | 1.0 | 1.0 | 5.5 | 9.2 | 1.0 |
البنية العامة
<br-style>
تقبل الخاصية border-left-style كلمةً محجوزةً من الكلمات المحجوزة المتاحة للخاصية border-style.
البنية الرسمية
border-left-style: <br-style>;
حيث:
<br-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset
انظر أيضًا
- صفحة الخاصيات التي تضبطها الخاصية المختصرة
border-leftوهي:border-left-width، وborder-left-color. - صفحة الخاصيات التي تضبطها الخاصية المختصرة
borderوهي:border-width، وborder-style، وborder-color. - ضبط صورة للإطار باستخدام الخاصية
border-image.
مصادر ومواصفات
- مواصفة CSS Backgrounds and Borders Module Level 3.
- مواصفة CSS Level 2 (Revision 1).