<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>同一行水平居中</title>
<style>
html,
body {
height: 100%
}
body {
margin: 0
}
body .row {
display: flex;
/* 元素垂直居中 */
align-items: center;
/* 元素平均分配 */
justify-content: space-between;
}
</style>
</head>
<body>
<div class="row">
<div>333</div>
<div>333</div>
<div>333</div>
</div>
</body>
</html>