<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>表格中文字长短不一时两端对齐</title>
<style type="text/css">
.justify {
text-align: justify;
width: 65px;
height: 18px;
}
.justify::after {
content: "";
display: inline-block;
width: 100%;
}
</style>
</head>
<body>
<div class="justify">姓名</div>
<div class="justify">性别</div>
<div class="justify">家庭住址</div>
</body>
</html>