微信小程序文字居中
<view class='container'>
<text>这是个例子
</text>
</view>
.container{
border: 2rpx black solid;
width: 400rpx;
height: 200rpx;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
微信小程序图片居中
<view class='image_'>
<image src