学习网址:(本次仅涉及P16-P22)
2020最新微信小程序开发零基础入门+项目案例【新视觉实训】_哔哩哔哩_bilibili
运行效果录屏:
微信小程序3
图片无法显示原因:wxss中格式出现错误
解决方法源代码:
.out{padding: 30rpx; box-sizing: border-box;}
.row{display: flex;height: 150rpx;margin-bottom: 20rpx;}
.pic{flex:2;}
.pic image{width: 100%; height: 100%; }
.text{flex:8; border-bottom:1px solid #eee; padding-left:10rpx; display:flex; flex-direction: column; justify-content: space-between;}
.text .title{ font-size: 38rpx;}
.text .time{ color:#999;}
.out{padding: 30rpx; box-sizing: border-box;}
.row2{display: flex;height: 150rpx;margin-bottom: 20rpx;}
.pic2{flex:2;}
.pic2 image{width: 100%; height: 100%; }
.text2{flex:8; border-bottom:1px solid #eee; padding-left:10rpx; display:flex; flex-direction: column; justify-content: space-between;}
.text2 .title{ font-size: 38rpx;}
.text2 .time{ color:#999;}
运行效果截图: