- 怎么实现第二个图片在第一个底图片的正中间呢?
我想实现进入单身的这个圆球在底图的正中间,根据手机屏幕的不同,第二张图圆形在第一张底图的正中间。 [图片] 第一张底图的类 .slide-image1 { margin-top: 2%; margin-bottom: 15%; margin-left: 6%; border-radius: 20rpx; box-shadow: 0px 0px 30rpx rgba(0, 0, 0, .2); z-index: 1; display:flex; justify-content: center; align-items:center; } 第二张进入单身的圆形图片类 .circle { width: 100rpx; height: 100rpx; border-radius: 50%; z-index: 1; position: fixed; flex-direction: row; align-self: center; padding-bottom: 12%; }
2022-07-25 - 小程序页面宽度多了,,会出现页面左右滑动?
把主容器或者主类的宽度设置成width: 92%;就行。 .container { padding-bottom: 100rpx; padding-left: 40rpx; width: 92%; }
2022-07-24 - 富文本输出文字,字体大了,行距变小了,怎么设置上下行的距离呢?
[图片] .conPs { word-wrap: break-word; max-height: 260rpx; } <rich-text bindtap="toPopDetail" class="conPs" nodes="{{item.message}}"></rich-text>
2022-06-23 - 富文本editor编辑器字体颜色设置,请教,怎么弄呢?
在wxml中该怎么设置字体颜色的代码呢,***那该写什么代码呢,有例子参考吗? <i class="iconfont icon-text_color" ******></i> <i class="iconfont icon-charutupian" catchtouchend="insertImage"></i>
2022-06-23 - getImageInfo获取图片信息,云存储路径和临时路径都不行,为啥呢?
src: '/static/images/album.png',只有这个路径成功获取信息。为啥云存储路径不行呢? wx.getImageInfo({ // src: getcloudPath, // src: t.tempFiles[0].tempFilePath, src: '/static/images/album.png', complete: (res) => { console.log("大师傅2"); console.log("getcloudPath--",getcloudPath); console.log(res); console.log(res.height); } })
2022-06-21 - background图片设置相关,图片是云存储的,怎么办?
.iconCom.man { background: url("https://imgv.***.com/w4/vip/wechat/fateplus/square/manNew.png?v=1") no-repeat; background-size: cover; } 如果图片是https上面没问题 我图片如果是云存储, background咋写呢? background: “cloud://pqtz2-9gzchr9694281166.7071-pqtz2-9gzchr9694281166-1309635073/manNew.png” no-repeat; 这样写不行
2022-06-20 - aggregate聚合有时有值,有时就是null,时好时坏?
const $ = db.command.aggregate else if (event.a == 5) { //使用 try { return await db.collection('chatmsg').aggregate().match({ fromopenId: event.fromopenId, }).orderBy('time','desc').group({ //根据时间降序,取最近100用户数据 _id: { toopenId: '$toopenId', toavatar: '$toavatar', tonickName: '$tonickName', tosex: '$tosex', }, readstate: $.sum('$readstate'), time: $.last('$time'), content: $.last('$content'), }).end() } catch (e) { console.log(e) } }
2022-06-06 - $.sum统计不对吗,这样写总是得到null,去掉$.sum语句还能有值?
return await db.collection('chatmsg').match({ fromopenId: event.toopenId, }).aggregate().group({ _id: { toopenId: '$toopenId', toavatar: '$toavatar', tonickName: '$tonickName', tosex: '$tosex' }, totalreadstate: $.sum('$readstate') }).end()
2022-06-03 - 云函数对某个字段相同的那条记录去重,distinct怎么使用呢?
else if (event.a == 5) { //使用 try { return await db.collection('chatmsg').where({ toopenId: event.toopenId, }).orderBy('time','desc').distinct('fromopenId').get() } catch (e) { console.log(e) } }
2022-05-31 - wx.previewMedia预览图片时,图片上面有1/1数字,能否让数字编号取消呢?
wx.previewMedia预览图片时,图片上方有1/2等数字编号,能否让它消失。
2022-05-27