1.解决图片之间有间隙
image{margin-top:-12rpx}
2.内容超过宽度自动换行
<view class=“top”>
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
</view>
.top{
width: 140rpx;
background-color: red;
word-wrap: break-word;
}
flex-wrap: 多个元素(例如view)之间是否自动换行
1>nowrap:不换行(默认)
2>wrap:换行
3>wrap-reverse:换行,第一行在最下面
3.居中问题
//元素居中
.sea{display: flex;justify-content: center; }
//字体居中
.se{text-align: center;}
微信小程序云开发爱好者Q裙:232884371