<small>:备注元素
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
<small>
HTML 元素代表旁注和小字印刷(如版权和法律文本),与其样式的呈现方式无关。默认情况下,它以比其中的文本小一号的字体大小呈现,例如从 small
变为 x-small
。
尝试一下
属性
这个元素只包含全局属性。
示例
基本用法
html
<p>
这是第一句。
<small>整个句子采用了较小的字体显示。</small>
</p>
结果
CSS 替代
html
<p>
这是第一句。
<span style="font-size:0.8em">整个句子采用了较小的字体显示。</span>
</p>
结果
备注
技术概要
规范
Specification |
---|
HTML # the-small-element |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
small |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on 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.