Properti isolasi gaya
Contoh
Buat konteks susun baru untuk elemen dengan id="d":
document.getElementById("d").style.isolation = "isolate";
Definisi dan Penggunaan
Properti isolasi menentukan apakah suatu elemen harus membuat konten susun baru.
Dukungan Peramban
Angka-angka dalam tabel menentukan versi browser pertama yang sepenuhnya mendukung properti.
Property | |||||
---|---|---|---|---|---|
isolation | 41.0 | 79.0 | 36.0 | Yes | 30.0 |
Sintaksis
Kembalikan properti isolasi:
object.style.isolation
Setel properti isolasi:
object.style.isolation = "auto|isolate|initial|inherit"
Nilai properti
Value | Description |
---|---|
auto | Default. A new stacking context is created only if one of the properties applied to the element requires it |
isolate | A new stacking context must be created |
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: | mobil |
---|---|
Versi CSS | CSS3 |
Halaman Terkait
Referensi CSS: properti isolasi
Objek Gaya