<template>
<div class="text">昵称</div>
</template>
<script>
.text {
display: inline-block;
text-align: justify;
text-justify: distribute-all-lines; // 兼容ie浏览器
text-align-last: justify;
}
</script>
CSS文字两端对齐
最新推荐文章于 2024-01-17 15:45:04 发布