表单title文字两端对齐(2、3、4个字都对齐)

<style type="text/css">
.word1{
letter-spacing:2em;
margin-right:-2em;
}
.word2{
letter-spacing:0.5em;
margin-right:-0.5em;
}
</style>

文字两端对齐
<div class="form">
<div>
<span class="text">用户名</span>
<input type="text">
</div>
<div>
<span class="text">密码</span>
<input type="text">
</div>
<div>
<span class="text">四个字的</span>
<input type="text">
</div>
</div>
.form .text {
display: inline-block;
width: 100px;
text-align-last: justify;
}

元素两端对齐
<div class="wrap">
<div class="box1"></div>
<div class="box2"></div>
</div>
.wrap {
width: 200px;
height: 200px;
border: 1px solid;
display: flex;
justify-content: space-between;
}
.wrap div {
width: 50px;
height: 50px;
}
.box1 {
background: yellow;
}
.box2 {
background: red;
}
