خاصية Style borderImageSlice
مثال
حدد الإزاحات الداخلية لحد الصورة:
document.getElementById("myDIV").style.borderImageSlice = "50% 10%";
التعريف والاستخدام
تحدد الخاصية borderImageSlice الإزاحات الداخلية لحد الصورة.
دعم المتصفح
تحدد الأرقام الواردة في الجدول إصدار المتصفح الأول الذي يدعم الخاصية بالكامل.
Property | |||||
---|---|---|---|---|---|
borderImageSlice | Yes | 11.0 | Yes | 6.0 | 15.0 11.0 O |
انظر إلى خاصية borderImage بدلاً من ذلك!
بناء الجملة
قم بإرجاع خاصية borderImageSlice:
object.style.borderImageSlice
قم بتعيين خاصية borderImageSlice:
object.style.borderImageSlice = "number|%|fill|initial|inherit"
قيم الملكية
Value | Description |
---|---|
number | Numbers represent pixels in the image (if the image is a raster image) or vector coordinates (if the image is a vector image) |
% | Percentages are relative to the size of the image: the width of the image for the horizontal offsets, the height for vertical offsets. Default value is 100% |
fill | Causes the middle part of the border-image to be preserved |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
تفاصيل تقنية
القيمة الافتراضية: | 100٪ |
---|---|
قيمة الإرجاع: | سلسلة ، تمثل الخاصية border-image-slice لعنصر |
إصدار CSS | CSS3 |
الصفحات ذات الصلة
مرجع CSS: خاصية border-image-slice