div 内容垂直居中
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body> <div style="width: 200px;height: 200px;border: solid red 1px;display: flex;align-items: center;"> <div>sdsfs</div> </div> </body> </html>
相关推荐
PioneerFan 2020-06-10
FZfeng 2018-04-04
Ivy 2016-08-14
drdrsky 2020-06-16
葉無聞 2020-03-23
lyg0 2020-03-07
冰蝶 2020-01-10
玫瑰小妖 2019-12-31
行吟阁 2019-12-08
aiolos 2016-04-15
loverlucky 2016-03-15
WebVincent 2019-07-01
云端漂移 2019-07-01
renpinghao 2019-06-30