diff options
Diffstat (limited to 'files/zh-cn/web/html/element/acronym/index.html')
| -rw-r--r-- | files/zh-cn/web/html/element/acronym/index.html | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/files/zh-cn/web/html/element/acronym/index.html b/files/zh-cn/web/html/element/acronym/index.html new file mode 100644 index 0000000000..5d6cf1d8ae --- /dev/null +++ b/files/zh-cn/web/html/element/acronym/index.html @@ -0,0 +1,120 @@ +--- +title: <acronym> +slug: Web/HTML/Element/acronym +tags: + - <acronym> +translation_of: Web/HTML/Element/acronym +--- +<div>{{obsolete_header}}</div> + +<h2 id="Summary" name="Summary">简介</h2> + +<p>HTML Acronym 元素 (<code><acronym>)</code> 允许作者明确地声明一个字符序列,,它们构成一个单词的首字母缩写或简略语。</p> + +<div class="note"> +<p><strong>用法提示: </strong>. 该元素已从HTML5中移除,不应再被使用。Web开发者应使用 {{HTMLElement("abbr")}} 元素.</p> +</div> + +<h2 id="Attributes" name="Attributes">属性</h2> + +<p>该元素除了 <a class="new " href="/en-US/docs/HTML/global_attributes" rel="internal" title="HTML/global attributes">global attributes</a>, 所有其他元素的公共属性之外没有其他属性.</p> + +<h2 id="DOM_Interface" name="DOM_Interface">DOM 接口</h2> + +<p>该元素实现了 {{domxref('HTMLElement')}} 接口.</p> + +<div class="note"><strong>实现提示: </strong>直到 Gecko 1.9.2(包含),Firefox 为这个元素实现了 {{domxref('HTMLSpanElement')}} 接口。</div> + +<h2 id="Example" name="Example">例子</h2> + +<pre class="brush:html"><p>The <acronym title="World Wide Web">WWW</acronym> is only one component of the Internet.</p> +</pre> + +<h2 id="Default_styling" name="Default_styling">默认样式</h2> + +<p>尽管这个标签的目的纯粹是为了方便作者,它的默认样式却在各个浏览器中不尽相同:</p> + +<ul> + <li>一些浏览器, 像Internet Explorer, 赋予它和 {{HTMLElement("span")}} 元素相同的样式。</li> + <li>Opera, Firefox, 和 一些其他的浏览器在元素内容下方添加了一条点状的下划线。</li> + <li>一小部分浏览器不仅添加了点状下划线, 而且 put it in small caps; 为避免这种样式, 可以在 CSS 中添加{{cssxref('font-variant')}}<code>: none</code> 处理这种情况。</li> +</ul> + +<p>因此强烈建议Web作者们不要依赖默认的样式.</p> + +<h2 id="Specifications" name="Specifications">规范</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">规范</th> + <th scope="col">状态</th> + <th scope="col">备注</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{SpecName('HTML4.01', 'struct/text.html#edef-ACRONYM', '<acronym>')}}</td> + <td>{{Spec2('HTML4.01')}}</td> + <td> </td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility" name="Browser_compatibility">浏览器兼容性</h2> + +<p>{{CompatibilityTable}}</p> + +<div id="compat-desktop"> +<table class="compat-table"> + <tbody> + <tr> + <th>特性</th> + <th>Chrome</th> + <th>Firefox (Gecko)</th> + <th>Internet Explorer</th> + <th>Opera</th> + <th>Safari (WebKit)</th> + </tr> + <tr> + <td>基本支持</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + </tr> + </tbody> +</table> +</div> + +<div id="compat-mobile"> +<table class="compat-table"> + <tbody> + <tr> + <th>特性</th> + <th>Android</th> + <th>Firefox Mobile (Gecko)</th> + <th>IE Phone</th> + <th>Opera Mobile</th> + <th>Safari Mobile</th> + </tr> + <tr> + <td>基本支持</td> + <td>{{CompatNo}}</td> + <td>{{CompatUnknown}}</td> + <td>{{CompatUnknown}}</td> + <td>{{CompatUnknown}}</td> + <td>{{CompatNo}}</td> + </tr> + </tbody> +</table> +</div> + +<h2 id="See_also" name="See_also">另见</h2> + +<ul> + <li>{{HTMLElement("abbr")}} HTML 元素</li> +</ul> + +<div>{{HTMLRef}}</div> |
