隔离属性定义元素是否必须创建新的堆叠内容。
表中的数字指定完全支持该属性的第一个浏览器版本。
Property | |||||
---|---|---|---|---|---|
isolation | 41.0 | 79.0 | 36.0 | Yes | 30.0 |
返回隔离属性:
object.style.isolation
设置隔离属性:
object.style.isolation = "auto|isolate|initial|inherit"
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 |
默认值: | 汽车 |
---|---|
CSS版本 | CSS3 |
CSS 参考:隔离特性
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!