已废弃
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.
概要
The HTML Big Element (<big>
) 会使字体加大一号(例如从小号(small)到中号(medium),从大号(large)到加大(x-large)),最大不超过浏览器的最大字体。
使用备注: 由于它是纯显示性的,该元素在HTML5中已经被移除,不应当再使用。取而代之,网页开发者应当使用CSS属性。
属性
只包含 全局属性
示例 1
<p> This is the first sentence. <big>This whole sentence is in bigger letters.</big> </p>
示例 2 (CSS 版)
<p> This is the first sentence. <span style="font-size:1.2em">This whole sentence is in bigger letters.</span> </p>
结果
This is the first sentence. This whole sentence is in bigger letters.
DOM 接口
该元素实现了 HTMLElement
接口.
实现备注: 直到 Gecko 1.9.2, Firefox 为该元素实现了
HTMLSpanElement
接口.浏览器兼容
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic support | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) |
Feature | Android | Edge | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | (Yes) | (Yes) | (Yes) | ? | 未实现 | 未实现 |
参见
<small>
,<font>
,<style>
- HTML 4.01 Specification: Font Styles