<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
.item {
height: 32px;
line-height: 32px;
margin-bottom: 8px;
}
.label {
display: inline-block;
height: 100%;
width: 100px;
text-align: justify;
vertical-align: top;
}
.label::after{
display: inline-block;
width: 100%;
content: ‘‘;
height: 0;
}
.value {
padding-right: 10px;
}
</style>
</head>
<body>
<div class="item">
<span class="label" >hdsfsfsdfs</span>:
<span class="value">陕西</span>
</div>
<div class="item">
<span class="label" >中国</span>:
<span class="value">家乡</span>
</div>
</body>
</html>
原文地址:https://www.cnblogs.com/namehou/p/10223937.html
时间: 2024-10-15 17:36:57