From 885f21466c95eab888a50186569dc8e83768c721 Mon Sep 17 00:00:00 2001 From: yionr Date: Mon, 13 Dec 2021 21:29:55 +0800 Subject: Improve Web/CSS/unset, zh-CN (#3326) --- files/zh-cn/web/css/unset/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'files/zh-cn') diff --git a/files/zh-cn/web/css/unset/index.html b/files/zh-cn/web/css/unset/index.html index 3b33d4cf63..9ebce13cbf 100644 --- a/files/zh-cn/web/css/unset/index.html +++ b/files/zh-cn/web/css/unset/index.html @@ -10,7 +10,7 @@ translation_of: Web/CSS/unset ---
{{CSSRef}}
-

如果CSS关键字 unset 从其父级继承,则将该属性重新设置为继承的值,如果没有继承父级样式,则将该属性重新设置为初始值。换句话说,在第一种情况下(继承属性)它的行为类似于{{cssxref("inherit")}} ,在第二种情况下(非继承属性)类似于{{cssxref("initial")}}。它可以应用于任何CSS属性,包括CSS简写属性 {{cssxref("all")}} 。

+

CSS关键字 unset 可以分为两种情况,如果这个属性本来有从父级继承的值(这个属性默认可以继承,且父级有定义),则将该属性重新设置为继承的值,如果没有继承父级样式,则将该属性重新设置为初始值。换句话说,在第一种情况下(继承属性)它的行为类似于{{cssxref("inherit")}} ,在第二种情况下(非继承属性)类似于{{cssxref("initial")}}。它可以应用于任何CSS属性,包括CSS简写属性 {{cssxref("all")}} 。

示例

-- cgit v1.2.3-54-g00ecf