<template>
<view class="item-title-box">
<view class="item-before">
*
</view>
<view class="item-title">
重量
</view>:
</view>
</template>
<style lang="scss">
.item-title-box {
margin-right: 35rpx;
display: flex;
align-items: center;
.item-title {
width: 110rpx;
// display: flex;
text-align-last: justify;
font-size: 25rpx;
font-family: Microsoft YaHei;
font-weight: 400;
color: #898989;
}
.item-before {
// content: '* ';
width: 10rpx;
color: red;
margin-right: 10rpx;
}
}
</style>
让一行字平均分布在指定宽度内
最新推荐文章于 2024-10-03 20:14:40 发布