
微信小程序
编程图一乐
去罗马的路很多,但选择走其中一条到达就可以了!
展开
-
1、Some selectors are not allowed in component wxss 2、微信小程序点赞效果(点亮小心心)源码
组件模板和样式 | 微信开放文档微信开发者平台文档https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/wxml-wxss.html微信小程序点赞效果(点亮小心心)源码一并奉上首先在components里定义了点赞组件,实现效果:代码如下:<!--components/like/index.wxml--><view class="container" b..原创 2022-04-17 08:52:01 · 3261 阅读 · 1 评论 -
vue和微信小程序中的unknown: Invalid shorthand property initializer.
在浏览器调试运行时出现错误:Uncaught SyntaxError: Invalid shorthand property initializer。错误原因:未知:速记属性初始值设定项无效。对象中属性与其对应的值之间使用“=”解决方法: “=”应该写为“:”详细展示:...原创 2022-04-17 08:35:53 · 1653 阅读 · 0 评论 -
wxss文件关键字汇总(持续更新)
文本和文字样式设置 设置文本或字体的属性需要使用到wxss,与css有所不同。我们利用class和style来进行设置。text-decoration: overline;/*下划线underline */text-decoration-color: chartreuse;/*下划线颜色*/line-height: 30px;/*行间距*/white-space: normal;/*空白符的设置*/text-align: center;/*对齐...原创 2022-02-10 16:36:45 · 656 阅读 · 1 评论