aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryionr <yionr99@gmail.com>2021-12-13 21:29:55 +0800
committerGitHub <noreply@github.com>2021-12-13 21:29:55 +0800
commit885f21466c95eab888a50186569dc8e83768c721 (patch)
tree5d56144ce9f2d8a67539a53517b910b538b1e551
parent1a6f1674cbd40946e6032ce61adadfa2d278182c (diff)
downloadtranslated-content-885f21466c95eab888a50186569dc8e83768c721.tar.gz
translated-content-885f21466c95eab888a50186569dc8e83768c721.tar.bz2
translated-content-885f21466c95eab888a50186569dc8e83768c721.zip
Improve Web/CSS/unset, zh-CN (#3326)
-rw-r--r--files/zh-cn/web/css/unset/index.html2
1 files changed, 1 insertions, 1 deletions
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
---
<div>{{CSSRef}}</div>
-<p>如果CSS关键字 <strong><code>unset</code></strong> 从其父级继承,则将该属性重新设置为继承的值,如果没有继承父级样式,则将该属性重新设置为初始值。换句话说,在第一种情况下(继承属性)它的行为类似于{{cssxref("inherit")}} ,在第二种情况下(非继承属性)类似于{{cssxref("initial")}}。它可以应用于任何CSS属性,包括CSS简写属性 {{cssxref("all")}} 。</p>
+<p>CSS关键字 <strong><code>unset</code></strong> 可以分为两种情况,如果这个属性本来有从父级继承的值(这个属性默认可以继承,且父级有定义),则将该属性重新设置为继承的值,如果没有继承父级样式,则将该属性重新设置为初始值。换句话说,在第一种情况下(继承属性)它的行为类似于{{cssxref("inherit")}} ,在第二种情况下(非继承属性)类似于{{cssxref("initial")}}。它可以应用于任何CSS属性,包括CSS简写属性 {{cssxref("all")}} 。</p>
<h2 id="示例">示例</h2>