📜  垂直对齐 div - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:45.912000             🧑  作者: Mango

代码示例5
HTML:

Some txt

bla bla bla

CSS: div.ext-box { display: table; height: 100%; width:100%;} div.int-box { display: table-cell; vertical-align: middle; }