<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>css</title>
<style>
.yi span{
font-size: 16px;
color: #06060685;
float: left;
width: 78px;
text-align: justify;
text-justify:distribute;
text-align-last: justify;
border:1px solid red;
}
</style>
</head>
<body>
<p>两端对齐</p>
<div style="border-bottom: 1px dashed #b3b3b3; margin-top: 8px;">
<div style="width: 49%;">
<p class="yi">
<span class="gu">常用名</span>
<span class="bian1">张仲景</span>
</p>
</div>
</div>
</body>
</html>
设置div中两端字对齐,字体平均隔开
最新推荐文章于 2023-10-24 14:11:35 发布