Gaya borderImageSlice Properti
Contoh
Tentukan offset ke dalam dari batas gambar:
document.getElementById("myDIV").style.borderImageSlice = "50% 10%";
Definisi dan Penggunaan
Properti borderImageSlice menentukan offset ke dalam batas gambar.
Dukungan Peramban
Angka-angka dalam tabel menentukan versi browser pertama yang sepenuhnya mendukung properti.
Property | |||||
---|---|---|---|---|---|
borderImageSlice | Yes | 11.0 | Yes | 6.0 | 15.0 11.0 O |
Lihat properti borderImage saja!
Sintaksis
Kembalikan properti borderImageSlice:
object.style.borderImageSlice
Setel properti borderImageSlice:
object.style.borderImageSlice = "number|%|fill|initial|inherit"
Nilai properti
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 |
Detail Teknis
Nilai Bawaan: | 100% |
---|---|
Nilai Kembali: | Sebuah String, mewakili properti border-image-slice dari sebuah elemen |
Versi CSS | CSS3 |
Halaman Terkait
Referensi CSS: properti border-image-slice