Stil borderImageSlice Özellik
Örnek
Görüntü kenarlığının içe doğru ofsetlerini belirtin:
document.getElementById("myDIV").style.borderImageSlice = "50% 10%";
Tanım ve Kullanım
borderImageSlice özelliği, görüntü-border'ın içe doğru ofsetlerini belirtir.
Tarayıcı Desteği
Tablodaki sayılar, özelliği tam olarak destekleyen ilk tarayıcı sürümünü belirtir.
Property | |||||
---|---|---|---|---|---|
borderImageSlice | Yes | 11.0 | Yes | 6.0 | 15.0 11.0 O |
Bunun yerine borderImage özelliğine bakın !
Sözdizimi
borderImageSlice özelliğini döndürün:
object.style.borderImageSlice
borderImageSlice özelliğini ayarlayın:
object.style.borderImageSlice = "number|%|fill|initial|inherit"
Mülk değerleri
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 |
Teknik detaylar
Varsayılan değer: | 100% |
---|---|
Geri dönüş değeri: | Bir öğenin border-image-slice özelliğini temsil eden bir String |
CSS Sürümü | CSS3 |
İlgili Sayfalar
CSS referansı: border-image-slice özelliği