aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/css/counters()/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/css/counters()/index.html')
-rw-r--r--files/zh-cn/web/css/counters()/index.html20
1 files changed, 10 insertions, 10 deletions
diff --git a/files/zh-cn/web/css/counters()/index.html b/files/zh-cn/web/css/counters()/index.html
index 0e5c3dd7d3..c758a6a3ad 100644
--- a/files/zh-cn/web/css/counters()/index.html
+++ b/files/zh-cn/web/css/counters()/index.html
@@ -17,12 +17,12 @@ counters(countername, '-');
/* changing the counter display */
counters(countername, '.', upper-roman)</pre>
-<p>一个<a href="https://wiki.developer.mozilla.org/en-US/docs/Web/CSS/CSS_Lists_and_Counters/Using_CSS_counters">计数器</a>本身没有可见的效果,而是通过<code>counter()</code>函数(和<code><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/CSS/counters">counters()</a></code>函数)返回开发人员定义的字符串(或图像) 从而使计数器拥有很棒的作用。</p>
+<p>一个<a href="/zh-CN/docs/Web/CSS/CSS_Lists_and_Counters/Using_CSS_counters">计数器</a>本身没有可见的效果,而是通过<code>counter()</code>函数(和<code><a href="/zh-CN/docs/Web/CSS/counters">counters()</a></code>函数)返回开发人员定义的字符串(或图像) 从而使计数器拥有很棒的作用。</p>
<div class="blockIndicator note">
-<p><strong>Note:</strong> <code>counter()</code> 函数可以与任何CSS属性一起使用,但是对<code><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/CSS/content">"content"</a></code>以外的属性的支持是试验性的,对type-or-unit参数的支持很少。</p>
+<p><strong>Note:</strong> <code>counter()</code> 函数可以与任何CSS属性一起使用,但是对<code><a href="/zh-CN/docs/Web/CSS/content">"content"</a></code>以外的属性的支持是试验性的,对type-or-unit参数的支持很少。</p>
-<p>在使用此功能之前,请仔细检查<a href="https://wiki.developer.mozilla.org/zh-CN/docs/Web/CSS/counter#Browser_compatibility">浏览器兼容性表</a> 。</p>
+<p>在使用此功能之前,请仔细检查<a href="/zh-CN/docs/Web/CSS/counter#Browser_compatibility">浏览器兼容性表</a> 。</p>
</div>
<h2 id="Syntax">Syntax</h2>
@@ -30,24 +30,24 @@ counters(countername, '.', upper-roman)</pre>
<h3 id="Values">Values</h3>
<dl>
- <dt><code><a href="https://wiki.developer.mozilla.org/zh-CN/docs/Web/CSS/custom-ident">&lt;custom-ident&gt;</a> 自定义标识</code></dt>
- <dd>一个标识计数器的名称,区分大小写,并且与<a href="https://wiki.developer.mozilla.org/zh-CN/docs/Web/CSS/counter-reset" title="
- counter-reset 属性用于将 CSS计数器 重置为制定值"><code>counter-reset</code></a>和<a href="https://wiki.developer.mozilla.org/zh-CN/docs/Web/CSS/counter-increment" title="counter-increment属性用于将CSS Counters的值增加给定值。可以使用 counter-reset 属性重置计数器的值。"><code>counter-increment</code></a>中的“名称”相同。名称不能以两个破折号开头,并且不能为<code>none</code>, <code>unset</code>, <code>initial</code>, 或 <code>inherit</code>。</dd>
+ <dt><code><a href="/zh-CN/docs/Web/CSS/custom-ident">&lt;custom-ident&gt;</a> 自定义标识</code></dt>
+ <dd>一个标识计数器的名称,区分大小写,并且与<a href="/zh-CN/docs/Web/CSS/counter-reset" title="
+ counter-reset 属性用于将 CSS计数器 重置为制定值"><code>counter-reset</code></a>和<a href="/zh-CN/docs/Web/CSS/counter-increment" title="counter-increment属性用于将CSS Counters的值增加给定值。可以使用 counter-reset 属性重置计数器的值。"><code>counter-increment</code></a>中的“名称”相同。名称不能以两个破折号开头,并且不能为<code>none</code>, <code>unset</code>, <code>initial</code>, 或 <code>inherit</code>。</dd>
<dt><code>&lt;counter-style&gt; 计数器样式</code></dt>
- <dd>计数器样式名称或 <code><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/CSS/symbols">symbols()</a></code> 函数,其中计数器样式名称是数字,字母或符号的简单预定义计数器样式,复杂的东亚或埃塞俄比亚长手预定义计数器样式,或其他<a href="https://wiki.developer.mozilla.org/en-US/docs/Web/CSS/CSS_Counter_Styles">预定义计数器样式</a>。如果省略,则计数器样式默认为十进制。</dd>
+ <dd>计数器样式名称或 <code><a href="/zh-CN/docs/Web/CSS/symbols">symbols()</a></code> 函数,其中计数器样式名称是数字,字母或符号的简单预定义计数器样式,复杂的东亚或埃塞俄比亚长手预定义计数器样式,或其他<a href="/zh-CN/docs/Web/CSS/CSS_Counter_Styles">预定义计数器样式</a>。如果省略,则计数器样式默认为十进制。</dd>
<dt><code><a href="/en-US/docs/Web/CSS/string">&lt;string&gt;</a> 字符串</code></dt>
<dd>任意数量的文本字符。非拉丁字符必须使用其Unicode转义序列进行编码:例如,<code>\ 000A9</code>表示版权符号。</dd>
</dl>
<h3 id="Formal_syntax">Formal syntax</h3>
-<pre class="syntaxbox">counters( <a href="https://wiki.developer.mozilla.org/en-US/docs/Web/CSS/custom-ident" title="The &lt;custom-ident> CSS data type denotes an arbitrary user-defined string used as an identifier. It is case-sensitive, and certain values are forbidden in various contexts to prevent ambiguity.">&lt;custom-ident&gt;</a>, <a href="https://wiki.developer.mozilla.org/en-US/docs/Web/CSS/string" title="The &lt;string> CSS data type represents a sequence of characters. Strings are used in numerous CSS properties, such as content, font-family, and quotes.">&lt;string&gt;</a>, <a href="https://wiki.developer.mozilla.org/en-US/docs/Web/CSS/counters#counter-style">&lt;counter-style&gt;</a><a href="https://wiki.developer.mozilla.org/en-US/docs/CSS/Value_definition_syntax#Question_mark_()" title="Question mark: the entity is optional">?</a> )
+<pre class="syntaxbox">counters( <a href="/zh-CN/docs/Web/CSS/custom-ident" title="The &lt;custom-ident> CSS data type denotes an arbitrary user-defined string used as an identifier. It is case-sensitive, and certain values are forbidden in various contexts to prevent ambiguity.">&lt;custom-ident&gt;</a>, <a href="/zh-CN/docs/Web/CSS/string" title="The &lt;string> CSS data type represents a sequence of characters. Strings are used in numerous CSS properties, such as content, font-family, and quotes.">&lt;string&gt;</a>, <a href="/zh-CN/docs/Web/CSS/counters#counter-style">&lt;counter-style&gt;</a><a href="/zh-CN/docs/CSS/Value_definition_syntax#Question_mark_()" title="Question mark: the entity is optional">?</a> )
where
-<code>&lt;counter-style&gt; = <a href="https://wiki.developer.mozilla.org/en-US/docs/Web/CSS/counters#counter-style-name">&lt;counter-style-name&gt;</a> <a href="https://wiki.developer.mozilla.org/en-US/docs/CSS/Value_definition_syntax#Single_bar" title="Single bar: exactly one of the entities must be present">|</a> symbols()</code>
+<code>&lt;counter-style&gt; = <a href="/zh-CN/docs/Web/CSS/counters#counter-style-name">&lt;counter-style-name&gt;</a> <a href="/zh-CN/docs/CSS/Value_definition_syntax#Single_bar" title="Single bar: exactly one of the entities must be present">|</a> symbols()</code>
where
-<code>&lt;counter-style-name&gt; = <a href="https://wiki.developer.mozilla.org/en-US/docs/Web/CSS/custom-ident" title="The &lt;custom-ident> CSS data type denotes an arbitrary user-defined string used as an identifier. It is case-sensitive, and certain values are forbidden in various contexts to prevent ambiguity.">&lt;custom-ident&gt;</a></code></pre>
+<code>&lt;counter-style-name&gt; = <a href="/zh-CN/docs/Web/CSS/custom-ident" title="The &lt;custom-ident> CSS data type denotes an arbitrary user-defined string used as an identifier. It is case-sensitive, and certain values are forbidden in various contexts to prevent ambiguity.">&lt;custom-ident&gt;</a></code></pre>
<h2 id="Examples">Examples</h2>