当前位置: 首页 > news >正文

【微信小程序】swiper的使用

1.swiper的基本使用

<jxz-header></jxz-header>
<view  class="banner"><swiperprevious-margin="30rpx"autoplayinterval="2000"indicator-dotsindicator-color="rgba(0,0,0,0.3)"indicator-active-color="#bda066"circular><swiper-item><image src="/static/images/banner0.jpg" mode=""/></swiper-item><swiper-item><image src="/static/images/banner1.jpg" mode=""/></swiper-item><swiper-item><image src="/static/images/banner2.jpg" mode=""/></swiper-item><swiper-item><image src="/static/images/banner3.jpg" mode=""/></swiper-item>
</swiper>
</view>
/*index.scss*/
.banner{padding-top: 30rpx;swiper{height: 460rpx;swiper-item{height: 460rpx;image{width: 690rpx;height: 460rpx;border-radius: 30rpx;-webkit-border-radius: 30rpx;-moz-border-radius: 30rpx;-ms-border-radius: 30rpx;-o-border-radius: 30rpx;}}}
}

----scss语法

http://www.lryc.cn/news/170095.html

相关文章:

  • iText实战--PDF和iText 简介
  • 「大数据-0.1」虚拟机VMware安装、配置、使用、创建大数据集群教程
  • 【HTTP】GET 和 POST 的区别
  • Unity Asset Bundle Browser 工具
  • 使用Linkerd实现流量管理:学习如何使用Linkerd的路由规则来实现流量的动态控制
  • 1462. 课程表 IV
  • QTday2
  • thrift的简单使用
  • Python实现猎人猎物优化算法(HPO)优化随机森林分类模型(RandomForestClassifier算法)项目实战
  • 2023年7月京东平板电脑行业品牌销售排行榜(京东销售数据分析)
  • HTML显示中文空格字符,emsp;一个中文字符,ensp;半个中文字符
  • Python基础指令(上)
  • Python之FastAPI返回音视频流
  • 文件名批量重命名与翻译的实用指南
  • 上海长宁来福士P2.5直径4米无边圆形屏圆饼屏圆面屏圆盘屏平面圆屏异形创意LED显示屏案例
  • Linux 企业级夜莺监控分析工具远程访问
  • react使用内联css样式的注意点
  • 优先队列PriorityQueue源码解析
  • 前端开发中常见的跨域问题及解决方案
  • (超详解)堆排序+(图解)
  • Hadoop的YARN高可用
  • C++内存检查
  • 防火墙概述及实战
  • nginx代理故障总结
  • python爬虫爬取电影数据并做可视化
  • 哈希及哈希表的实现
  • CLIP 基础模型:从自然语言监督中学习可转移的视觉模型
  • 解读性能指标TP50、TP90、TP99、TP999
  • 【无标题】mysql 截取两个,之间字符串
  • 全局的键盘监听事件