<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-09-28 21:48:09 发布