<big>:更大的文本元素

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.

<big> HTML 已弃用的元素以比周围文本大一级的字体大小呈现封闭的文本(例如,medium 变为 large)。大小上限为浏览器允许的最大字体大小。

¥The <big> HTML deprecated element renders the enclosed text at a font size one level larger than the surrounding text (medium becomes large, for example). The size is capped at the browser's maximum permitted font size.

警告:该元素已从规范中删除,不应再使用。使用 CSS font-size 属性调整字体大小。

¥Warning: This element has been removed from the specification and shouldn't be used anymore. Use the CSS font-size property to adjust the font size.

属性

¥Attributes

该元素除了所有元素共有的 全局属性 之外没有其他属性。

¥This element has no other attributes than the global attributes, common to all elements.

示例

¥Examples

在这里,我们看到了展示 <big> 用法的示例,后面的示例展示了如何使用现代 CSS 语法来实现相同的结果。

¥Here we see examples showing the use of <big> followed by an example showing how to accomplish the same results using modern CSS syntax instead.

使用大

¥Using big

此示例使用过时的 <big> 元素来增加某些文本的大小。

¥This example uses the obsolete <big> element to increase the size of some text.

HTML

html
<p>
  This is the first sentence.
  <big>This whole sentence is in bigger letters.</big>
</p>

结果

¥Result

使用 CSS font-size

¥Using CSS font-size

此示例使用 CSS font-size 属性将字体大小增加一级。

¥This example uses the CSS font-size property to increase the font size by one level.

CSS

css
.bigger {
  font-size: larger;
}

HTML

html
<p>
  This is the first sentence.
  <span class="bigger">This whole sentence is in bigger letters.</span>
</p>

结果

¥Result

DOM 接口

¥DOM interface

该元素实现 HTMLElement 接口。

¥This element implements the HTMLElement interface.

规范

Specification
HTML Standard
# big

¥Specifications

浏览器兼容性

BCD tables only load in the browser

¥Browser compatibility

也可以看看

¥See also