移动端两端对齐支持iPhone6
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
ul {
list-style: none;
}
li {
border-bottom: 1px solid #333333;
display: flex;
padding-top: 14px;
padding-bottom: 14px;
}
li .text {
font-size: 28px;
width: 425px;
height: 40px;
text-align: justify;
}
/*支持iPhone6的关键伪类*/
li .text:after {
display: inline-block;
width: 425px;
content: '';
}
</style>
</head>
<body>
<ul>
<li><span class="text">平安信用卡天天加油88折</span></li>
<li><span class="text">平安相随-全车人员保障</span></li>
<li><span class="text">110万元全车人员意外险</span></li>
</ul>
</body>
</html>
移动端两端对齐支持iPhone6
最新推荐文章于 2023-04-25 15:04:37 发布