https://developers.weixin.qq.com/miniprogram/dev/component/swiper.html
这个轮播图为什么不显示CSS的示例,我完全不知道图片该怎么放上去让他显示
框架类型 | 问题类型 | API/组件名称 | 终端类型 | 微信版本 | 基础库版本 |
---|---|---|---|---|---|
小程序 | Bug | swiper | 微信iOS客户端 | 4.0 | 2.0.0 |
https://developers.weixin.qq.com/miniprogram/dev/component/swiper.html
这个轮播图为什么不显示CSS的示例,我完全不知道图片该怎么放上去让他显示
3 个回答
请参考https://developers.weixin.qq.com/miniprogram/dev/component/swiper-item.html
轮播图中放图片,直接在<swiper-item></swiper-item>中写入你所需的标签元素;
查看wxss,可以预览文档提供的代码片段
<swiper> <swiper-item> <image></image> </swiper-item> </swiper>