Gaya borderImageSource Properti
Contoh
Gunakan gambar sebagai batas di sekitar elemen div:
document.getElementById("myDIV").style.borderImageSource = "url(border.png)";
Definisi dan Penggunaan
Properti borderImageSource menyetel atau mengembalikan gambar yang akan digunakan, alih-alih gaya batas yang diberikan oleh properti gaya batas.
Tips: Jika nilainya "none", atau jika gambar tidak dapat ditampilkan, gaya batas akan digunakan.
Dukungan Peramban
Angka-angka dalam tabel menentukan versi browser pertama yang sepenuhnya mendukung properti.
Property | |||||
---|---|---|---|---|---|
borderImageSource | Yes | 11.0 | Yes | 6.0 | 15.0 11.0 O |
Lihat properti borderImage saja!
Sintaksis
Kembalikan properti borderImageSource:
object.style.borderImageSource
Setel properti borderImageSource:
object.style.borderImageSource = "none|image|initial|inherit"
Nilai properti
Value | Description |
---|---|
none | No image will be used |
image | The path to the image to be used as a border |
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: | tidak ada |
---|---|
Nilai Kembali: | Sebuah String, mewakili properti border-image-source dari sebuah elemen |
Versi CSS | CSS3 |
Halaman Terkait
Referensi CSS: properti border-image-source