日常记录学习~~
参数参考官方文档: https://developers.weixin.qq.com/miniprogram/dev/component/cover-image.html
cover-image:覆盖在原生组件之上的图片视图,支持嵌套在 cover-view 里
cover-view:覆盖在原生组件之上的文本视图,支持嵌套 cover-view 、 cover-image ,可在 cover-view 中使用 button
原生组件有:map,video,canvas,camera,live-player,live-pusher
参数参考官方文档: https://developers.weixin.qq.com/miniprogram/dev/component/match-media.html
match-media:media query 匹配检测节点,指定一仿春组 media query 规则,满足时,这个节点才会被展示。
参数参考官方文档: https://developers.weixin.qq.com/miniprogram/dev/component/movable-area.html
movable-area:是movable-view的可移动区域,必须设置width和height属性,不并芹设置默认为10px
movable-view:可移动的视图容器,在页面中可以拖拽滑动,movable-view必须在movable-area组件中使用,并且必须是直接子节点,否则不能移动。
参数参考官方文档: https://developers.weixin.qq.com/miniprogram/dev/component/page-container.html
page-container:“假页”容器备蔽耐组件,效果类似于 popup d出层,页面内存在该容器时,当用户进行返回 *** 作,关闭该容器不关闭页面,当前页面最多只有 1 个容器,若已存在容器的情况下,无法增加新的容器
参数参考官方文档:
https://developers.weixin.qq.com/miniprogram/dev/component/scroll-view.html
scroll-view:可滚动视图区域,使用竖向滚动时,需要给一个固定高度,组件属性的长度单位默认为px
参数参考官方文档:
https://developers.weixin.qq.com/miniprogram/dev/component/share-element.html
具体使用可看官方案例哦
share-element:共享元素,该组件需与page-container组件结合使用
swiper:滑块视图容器,其中只可放置swiper-item组件,否则会导致未定义的行为。
swiper-item:仅可放置在swiper组件中,宽高自动设置为100%
这是我们最熟悉的容器啦~
微信小程序设置轮播图的尺寸为950*450的 *** 作方法如下:1、打开微信开发者工具。胡缺
2、找到wxml文件。
3、新建一个swiper标签。
4、设置swiper和autoplay的属性。
5、点击autoplay设置为自动轮播。
6、使用block标签,放置要轮裤备辩播的图滚薯片,展示大小设置为950*450即可。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)