aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin CHEN <33132228+KevinZonda@users.noreply.github.com>2021-09-28 15:19:06 +0100
committerGitHub <noreply@github.com>2021-09-28 22:19:06 +0800
commit34eab4569727144926d24ccd7702b371fc97ace6 (patch)
treee9348439c79b2b43781cfb94609151b93d3a256e
parenta0af5e035e750687940bd38ef4a213ccfb54df3b (diff)
downloadtranslated-content-34eab4569727144926d24ccd7702b371fc97ace6.tar.gz
translated-content-34eab4569727144926d24ccd7702b371fc97ace6.tar.bz2
translated-content-34eab4569727144926d24ccd7702b371fc97ace6.zip
optimise border-top (#2572)
-rw-r--r--files/zh-cn/web/css/border-top/index.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/files/zh-cn/web/css/border-top/index.html b/files/zh-cn/web/css/border-top/index.html
index 1bfe5b6579..ff289b6fd7 100644
--- a/files/zh-cn/web/css/border-top/index.html
+++ b/files/zh-cn/web/css/border-top/index.html
@@ -13,21 +13,21 @@ translation_of: Web/CSS/border-top
<p>{{EmbedInteractiveExample("pages/css/border-top.html")}}</p>
-<p>与所有缩写属性(shorthand properties)一样,<strong>border-top</strong>始终设置它可以设置的所有属性的值,即使未指定它们也是如此。 它将未指定的那些设置为其默认值。 这意味着 ..</p>
+<p>与所有缩写属性(shorthand properties)一样,<strong>border-top</strong>始终设置它可以设置的所有属性的值,即使未指定它们也是如此。 它将未指定的那些设置为其默认值。 这意味着</p>
-<pre>border-top-style: dotted;
+<pre class="brush: css">border-top-style: dotted;
border-top: thick green;</pre>
<p>和下面的代码效果相同:</p>
-<pre>border-top-style: dotted;
+<pre class="brush: css">border-top-style: dotted;
border-top: none thick green;</pre>
<p>在<code>border-top</code>前指定的{{cssxref("border-top-style")}}将会失效。因为{{cssxref("border-top-style")}} 默认值为<code>none</code>,故没有边界即没有指定<code>border-style</code></p>
<h2 id="Syntax" name="Syntax">Syntax</h2>
-<pre>border-top: 1px;
+<pre class="brush: css">border-top: 1px;
border-top: 2px dotted;
border-top: medium dashed green;</pre>
@@ -64,7 +64,7 @@ border-top: medium dashed green;</pre>
}
</pre>
-<p>{{ EmbedLiveSample('Example') }}</p>
+<p>{{ EmbedLiveSample('Applying_a_top_border') }}</p>
<h2 id="Specifications" name="Specifications">技术说明</h2>