<acronym>

Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

<acronym> HTML 元素允许作者清楚地指示组成单词的首字母缩略词或缩写的字符序列。

¥The <acronym> HTML element allows authors to clearly indicate a sequence of characters that compose an acronym or abbreviation for a word.

警告:不要使用这个元素。请改用 <abbr> 元素。

¥Warning: Don't use this element. Use the <abbr> element instead.

属性

¥Attributes

该元素只有 全局属性,这是所有元素共有的。

¥This element only has global attributes, which are common to all elements.

DOM 接口

¥DOM Interface

该元素实现 HTMLElement 接口。

¥This element implements the HTMLElement interface.

示例

¥Examples

html
<p>
  The <acronym title="World Wide Web">WWW</acronym> is only a component of the
  Internet.
</p>

结果

¥Result

默认样式

¥Default styling

尽管此标签的目的纯粹是为了方便作者,但其默认样式因浏览器而异:

¥Though the purpose of this tag is purely for the convenience of the author, its default styling varies from one browser to another:

  • Opera、Firefox、Chrome 和其他一些浏览器向元素内容添加点下划线。
  • 一些浏览器不仅添加点下划线,而且将其置于小型大写字母中;为了避免这种样式,在 CSS 中添加类似 font-variant: none 的内容可以解决这种情况。

因此,建议网络作者明确设置此元素的样式,或接受一些跨浏览器的变化。

¥It is therefore recommended that web authors either explicitly style this element, or accept some cross-browser variation.

规范

Specification
HTML Standard
# acronym

¥Specifications

浏览器兼容性

BCD tables only load in the browser

¥Browser compatibility

也可以看看

¥See also