Gaya borderImageRepeat Property
Contoh
Tentukan cara mengulang batas gambar:
document.getElementById("myDIV").style.borderImageRepeat = "round";
Definisi dan Penggunaan
Properti borderImageRepeat menetapkan atau mengembalikan apakah batas gambar harus diulang, dibulatkan, atau diregangkan.
Dukungan Peramban
Angka-angka dalam tabel menentukan versi browser pertama yang sepenuhnya mendukung properti.
Property | |||||
---|---|---|---|---|---|
borderImageRepeat | Yes | 11.0 | Yes | 6.0 | 15.0 11.0 O |
Lihat properti borderImage saja!
Sintaksis
Kembalikan properti borderImageRepeat:
object.style.borderImageRepeat
Setel properti borderImageRepeat:
object.style.borderImageRepeat = "stretch|repeat|round|initial|inherit"
Nilai properti
Value | Description |
---|---|
stretch | Default value. The image is stretched to fill the area |
repeat | The image is tiled (repeated) to fill the area |
round | The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so it fits |
space | The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles |
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: | meregang |
---|---|
Nilai Kembali: | Sebuah String, mewakili properti border-image-repeat dari suatu elemen |
Versi CSS | CSS3 |
Halaman Terkait
Referensi CSS: properti border-image-repeat