HTML/span:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
Kangkk​(留言 | 贡献)
 
第14行: 第14行:


<html><iframe width="100%" height="300" src="//iframe.kangkk.cn/date/2022/2022-8-8-span元素居中显示-3/iframe.html" frameborder="0"></iframe></html>
<html><iframe width="100%" height="300" src="//iframe.kangkk.cn/date/2022/2022-8-8-span元素居中显示-3/iframe.html" frameborder="0"></iframe></html>
使用绝对定位。

2022年8月8日 (一) 05:17的最新版本

span

行内元素。

垂直居中

使用 flex 布局方式。

使用 table-cell 布局方式。

使用 flex + margin 布局方式。

使用绝对定位。