过时
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

过时 HTML Big Element ( <big> ) renders the enclosed text at a font size one level larger than the surrounding text ( medium becomes large ,例如)。 The size is capped at the browser's maximum permitted font size.

Usage note: As it was purely presentational, this element has been removed in HTML5 and shouldn't be used anymore. Instead web developers should use the CSS font-size property to adjust the font size.

属性

This element has no other attributes than the 全局属性 , common to all elements.

范例

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>

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

HTML

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

结果

Using CSS font-size

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

CSS

.bigger {
  font-size: larger;
}
					

HTML

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

结果

DOM 接口

This element implements the HTMLElement 接口。

Implementation note: Up to Gecko 1.9.2 inclusive, Firefox implements the HTMLSpanElement interface for this element.

浏览器兼容性

The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. 更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
big 弃用 非标 Chrome 完整支持 Yes Edge 完整支持 12 Firefox 完整支持 Yes IE 完整支持 Yes Opera 完整支持 Yes Safari 完整支持 Yes WebView Android 完整支持 Yes Chrome Android 完整支持 Yes Firefox Android 完整支持 Yes Opera Android 完整支持 Yes Safari iOS 完整支持 Yes Samsung Internet Android 完整支持 Yes

图例

完整支持

完整支持

非标。预期跨浏览器支持较差。

非标。预期跨浏览器支持较差。

弃用。不要用于新网站。

弃用。不要用于新网站。

另请参阅

元数据

  • 最后修改: