خاصية CSS على غرار يمين الحدود
مثال
عيّن نمطًا للحد الأيمن:
div {border-right-style: dotted;}
المزيد من الأمثلة "جربها بنفسك" أدناه.
التعريف والاستخدام
تحدد الخاصية نمط border-right-style
الحد الأيمن للعنصر.
القيمة الافتراضية: | لا أحد |
---|---|
وارث: | رقم |
متحرك: | رقم. اقرأ عن animatable |
الإصدار: | CSS1 |
بناء جملة JavaScript: | الكائن .style.borderRightStyle = "منقط" |
دعم المتصفح
تحدد الأرقام الواردة في الجدول إصدار المتصفح الأول الذي يدعم الخاصية بالكامل.
Property | |||||
---|---|---|---|---|---|
border-right-style | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
بنية CSS
border-right-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-right-style: dashed;}
مثال
حد أيمن متصل:
div {border-right-style: solid;}
مثال
حد أيمن مزدوج:
div {border-right-style: double;}
مثال
قم بإزالة الحد الأيمن:
div {border-right-style: none;}
مثال
أخدود حد أيمن:
div {
border-right-style: groove;
border-right-color: coral;
border-right-width: 7px;
}
مثال
الحد الأيمن من التلال:
div {
border-right-style: ridge;
border-right-color: coral;
border-right-width: 7px;
}
مثال
حد أيمن داخلي:
div {
border-right-style: inset;
border-right-color: coral;
border-right-width: 7px;
}
مثال
حد البداية اليمنى:
div {
border-right-style: outset;
border-right-color: coral;
border-right-width: 7px;
}
الصفحات ذات الصلة
دروس CSS: CSS Border
مرجع CSS: خاصية border-right
مرجع DOM HTML: خاصية borderRightStyle