نمط الحدود ، أسفل ، نمط الملكية
مثال
أضف حدًا سفليًا "متصلًا" إلى عنصر <div>:
document.getElementById("myDiv").style.borderBottomStyle = "solid";
التعريف والاستخدام
تقوم الخاصية borderBottomStyle بتعيين أو إرجاع نمط الحد السفلي لعنصر ما.
دعم المتصفح
تحدد الأرقام الواردة في الجدول إصدار المتصفح الأول الذي يدعم الخاصية بالكامل.
Property | |||||
---|---|---|---|---|---|
borderBottomStyle | 1.0 | 5.5 | 1.0 | 1.0 | 9.2 |
ملاحظة: القيمة "مخفية" غير مدعومة في IE7 والإصدارات السابقة. IE9 ودعم لاحقًا "مخفي".
بناء الجملة
قم بإرجاع خاصية borderBottomStyle:
object.style.borderBottomStyle
قم بتعيين خاصية borderBottomStyle:
object.style.borderBottomStyle = value
قيم الملكية
Value | Description |
---|---|
none | Defines no border. This is default |
hidden | Same as "none", except in border conflict resolution for table elements |
dotted | Defines a dotted border |
dashed | Defines a dashed border |
solid | Defines a solid border |
double | Defines two borders. The width of the two borders are the same as the border-width value |
groove | Defines a 3D grooved border. The effect depends on the border-color value |
ridge | Defines a 3D ridged border. The effect depends on the border-color value |
inset | Defines a 3D inset border. The effect depends on the border-color value |
outset | Defines 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 |
تفاصيل تقنية
القيمة الافتراضية: | لا أحد |
---|---|
قيمة الإرجاع: | سلسلة ، تمثل نمط الحد السفلي للعنصر |
إصدار CSS | CSS1 |
مزيد من الأمثلة
مثال
غيّر نمط الحد السفلي لعنصر <div> إلى "منقط":
document.getElementById("myDiv").style.borderBottomStyle = "dotted";
مثال
إعادة نمط الحد السفلي لعنصر <div>:
alert(document.getElementById("myDiv").style.borderBottomStyle);
مثال
عرض لجميع القيم المختلفة:
var listValue = selectTag.options[selectTag.selectedIndex].text;
document.getElementById("myDiv").style.borderBottomStyle = listValue;
الصفحات ذات الصلة
دروس CSS: CSS Border
مرجع CSS: خاصية نمط الحد السفلي
مرجع DOM HTML: خاصية الحدود