这种情况下,子元素多行文字如何垂直居中?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.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;
}
</style>
</head>
<body>
<div class="box">
<div class="box1">1234aaaaaaaaaaaaaaaaaaaaa</div>
</div>
</body>
</html>
align-items: center;垂直居中,word-break:break-all;字母数字换行