首页 > 编程知识 正文

微信小程序事件触发,苹果快捷指令打开app并点击按钮

时间:2023-05-04 01:49:59 阅读:14099 作者:4594

中的catchtap事件苹果手机使用无效源代码如下:

scroll-view scroll-y class=' scroll ' view class=' sence box ' blockviewclass=' item ' data-str='一键关闭所有灯光viewview class='status '无临时记录/view view imagesrc=' http://www.cspugoing.com/img v=1.8.1' mode=' width fix '//v viewviewclass='item'data-str='一键关闭所有灯光' catch tap=' run sence ' bbar koff ' } ' view class=' dname '所有灯光viewviewimagesrc=' http://www.cspugoing.com/img v=1.8.1' mode=' width fix '/image/view/viewviewclass='item'data-str='一键关闭所有灯光' catch tap=' run sence ' bbar koff ' } ' view class=' dname '所有灯光viewviewimagesrc=' http://www.cspugoing.com/img v=1.8.1' mode=' width fix '/image/view/viewviewclass='item'data-str='一键关闭所有灯光' catch tap=' run sence ' bbar koff ' } ' view class=' dname '所有灯光viewviewimagesrc=' http://www.cspugoing.com/img v=1.8.1' mode=' width fix '/image/view/viewviewclass='item'data-str='一键关闭所有灯光' catch tap=' run sence ' bbar koff ' } ' view class=' dname '所有灯光viewviewimagesrc=' http://www.cspugoing.com/img v=1.8.1' mode=' width fix '/image/view/view/block/view

. senceBox{ display: flex; width: 100%; flex-wrap: wrap; }.sence box.item { position : relative; 显示: Flex; width: 30%; height: 238rpx; align-items3360中心; justify-content: center; flex-direction: column; 背景色: rgba (247、251、251、0.8 ); 玛格琳- left : 0.5 %; margin-top: 0.5%; }.sence box.show chose { width :100 %; 位置: absolute; right: 0rpx; z-index: 100; }.sence box.show line { display : flex; justify-content: center; align-items3360中心; color: #fff; 高海拔: 81.5 rpx; padding: 20rpx; 文本对齐3360中心; }.sence box.del { background-color : # EC 2626; }.sence box.roof { background-color : # c0c0c 0; }.sence box.item.dname { white-space : nowrap; Overflow :隐藏; 文本溢出: ellipsis; width: 185rpx; margin-top: 25rpx; 文本对齐3360中心; font-size: 31rpx; }.sence box.item.status { display : flex; align-items3360中心; justify-content: center; font-size: 23rpx; color: #565656; width: 150rpx; 文本对齐3360中心; }.senceboximage { width :80 rpx; height: 80rpx; margin-top: 10rpx; )定位后,发现苹果手机点击事件无效是scroll-view的问题。 之后,在网上搜索到scroll-view苹果手机点击无效的问题,但未找到。 没办法自己操作了。 实验结果显示,向scroll-view添加view后,我写的事件无效,删除后可以使用,但不使用view我的需求也无效

view class=' sence box ' view class=' item ' data-str='单击关闭所有灯光' catch tap=' run sence ' bindlongpress=' viewview class='status '无临时记录/view view imagesrc=' http://www.cspugoing.com/img v=1.8.1' mode=' width fix '//v viewviewclass='item'data-str='一键关闭所有灯光' catch tap=' run sence ' bbar koff ' } ' view class=' dname '所有灯光viewviewimagesrc=' http://www.cspugoing.com/img v=1.8.1' mode=' width fix '/image/view/viewviewclass='item'data-str='一键关闭所有灯光' catch tap=' run sence ' bbar koff ' } ' view class=' dname '所有灯光viewviewimagesrc=' http://www.cspugoing.com/img v=1.8.1' mode=' width fix '/image/view/viewviewclass='item'data-str='一键关闭所有灯光' catch tap=' run sence ' bbar koff ' } ' view class=' dname '所有灯光viewviewimagesrc=' http://www.cspugoing.com/img v=1.8.1' mode=' width fix '/image/view/viewviewclass='item'data-str='一键关闭所有灯光' catch tap=' run sence ' bbar koff ' } ' view class=' dname '所有灯光发现了viewviewimagesrc=' http://www.cspugoing.com/img v=1.8.1' mode=' width fix '/image/view/view以及新大陆! 将overflow-y:scroll添加到css样式中时,可以垂直滚动

css样式:

. senceBox{ display: flex; width: 100%; flex-wrap: wrap; overflow-y:scroll}

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。