weex
weex copied to clipboard
space-around 没效果
代码如下:
<template>
<div class="container">
<text>第一个</text>
<text class="text">第2个</text>
<text>第三个</text>
<text class="text">第4个</text>
</div>
</template>
<style>
.container{
flex-direction: row;
justify-content: space-around;
background-color: aliceblue;
}
.text {
background-color: red;
}
</style>
space-around 目前的兼容性不够好,所以官方并没有推荐使用,目前支持比较好的类似属性值是 space-between
感谢理解