推荐 最新
我是张工你呢

这种情况下,子元素多行文字如何垂直居中?

这种情况下,子元素多行文字如何垂直居中? Document .box1 { width: 100px; height: 300px; border: 1px solid red; word-wrap: break-word; } .box { display: flex; align-items: center; height: 500px; border: 1px solid blue; } 1234aaaaaaaaaaaaaaaaaaaaa https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20240925/fcef9055cae8d4f129ee344ecb5e00cc.png

1
1
0
浏览量162