<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <title>42度空间-多行内联元素垂直居中-flex</title>
    <style>
        .center-flex {
            height: 140px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            border: 2px dashed #f69c55;
        }
    </style>
</head>
<body>
<div class="center-flex">
    <p>Dance like nobody is watching, code like everybody is.</p>
</div>
</body>
</html>