نمط الخاصية borderImage
مثال
حدد صورة كحد حول عنصر <div>:
document.getElementById("myDIV").style.borderImage = "url(border.png) 30 30 round";
التعريف والاستخدام
الخاصية borderImage هي خاصية اختصار لتعيين خصائص borderImageSource ، و borderImageSlice ، و borderImageWidth ، و borderImageOutset ، و borderImageRepeat .
يتم تعيين القيم المحذوفة على قيمها الافتراضية.
دعم المتصفح
تحدد الأرقام الواردة في الجدول إصدار المتصفح الأول الذي يدعم الخاصية بالكامل.
تحدد الأرقام المتبوعة بـ Webkit أو Moz أو O الإصدار الأول الذي يعمل مع بادئة.
Property | |||||
---|---|---|---|---|---|
borderImage | 16.0 4.0 Webkit |
11.0 | 15.0 3.5 Moz |
6.0 3.1 Webkit |
15.0 11.0 O |
بناء الجملة
إرجاع خاصية borderImage:
object.style.borderImage
قم بتعيين خاصية borderImage:
object.style.borderImage = "source slice width outset repeat|initial|inherit"
قيم الملكية
Value | Description |
---|---|
borderImageSource | The path to the image to be used as a border |
borderImageSlice | The inward offsets of the image-border |
borderImageWidth | The widths of the image-border |
borderImageOutset | The amount by which the border image area extends beyond the border box |
borderImageRepeat | Whether the image-border should be repeated, rounded or stretched |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
تفاصيل تقنية
القيمة الافتراضية: | لا شيء 100٪ 1 0 امتداد |
---|---|
قيمة الإرجاع: | سلسلة ، تمثل خاصية صورة الحدود لعنصر |
إصدار CSS | CSS3 |
الصفحات ذات الصلة
مرجع CSS: خاصية صورة الحدود