<view class='shop'>
<view class='pic'>
<image src='../../image/abc.png'></image>
</view>
<view class='name'>
<text>店名</text>
<text class='time'>2017-12-12</text>
</view>
</view>
样式
.shop {
display: flex;
flex-direction: row;
align-content: flex-start;
padding: 20rpx;
}
.name {
font-size: 17px;
display: flex;
flex-direction: column;
}
.time{
font-size: 12px;
color:blue;
}
.pic image {
width: 78rpx;
height: 78rpx;
padding-right: 20rpx;
}
在微信小程序中,渲染的结果是:
图片和游标的文字高低不对齐,请问需要怎么设置解决呢?直接给图片加padding-top吗?有没有其他方法?