نمط الخاصية borderRightColor
مثال
غيّر لون الحد الأيمن لعنصر <div> إلى اللون الأحمر:
document.getElementById("myDiv").style.borderRightColor = "red";
التعريف والاستخدام
تقوم الخاصية borderRightColor بتعيين أو إرجاع لون الحد الأيمن للعنصر.
دعم المتصفح
Property | |||||
---|---|---|---|---|---|
borderRightColor | Yes | Yes | Yes | Yes | Yes |
بناء الجملة
قم بإرجاع خاصية borderRightColor:
object.style.borderRightColor
قم بتعيين الخاصية borderRightColor:
object.style.borderRightColor = "color|transparent|initial|inherit"
قيم الملكية
Value | Description |
---|---|
color | Specifies the color of the right border. Look at CSS Color Values for a complete list of possible color values. Default color is the current color of the element |
transparent | The color of the right border is transparent (underlying content will shine through) |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
تفاصيل تقنية
القيمة الافتراضية: | اللون الحالي |
---|---|
قيمة الإرجاع: | سلسلة ، تمثل لون الحد الأيمن للعنصر |
إصدار CSS | CSS1 |
مزيد من الأمثلة
مثال
إرجاع لون الحد الأيمن لعنصر <div>:
alert(document.getElementById("myDiv").style.borderRightColor);
الصفحات ذات الصلة
دروس CSS: CSS Border
مرجع CSS: خاصية لون الحدود اليمنى
مرجع DOM HTML: خاصية الحدود
❮ نمط الكائن