小程序的高斯模糊

小程序的高斯模糊,第1张

注意: 小程序 高斯模糊效果 ,用库stack-blur无法使用; 因为小程序是没有window对象和document对象的。

一 、stack-blur库实现(原理:canvas):

https://blog.csdn.net/u010852544/article/details/43967749

二 、CSS3实现(原理:filter):

注意: 需要解决两个问题:容器外范围变模糊(用scale)与周围泛白(用overflow:hidden)

参考链接:

【小程序】INPUT键盘事件(修改键盘右下角按钮文件和添加事件

<input

type="text"

placeholder="请输入"

bindinput="bindKeyInput"

value="{{inputMsg}}"

confirm-type='send'

bindconfirm="sendMsgTap"

bindfocus='focus'

bindblur='blur'

focus='true'

/>

1、confirm-type='send': 设置键盘右下角按钮的文字,仅在type='text'时生效

2、bindconfirm="sendMsgTap":点击键盘右下角按钮时的触发事件

3、bindfocus='focus':聚焦时触发的事件

4、bindblur='blur':失去焦点时触发的事件

5、focus='true':进入界面时,自动聚焦,拉起键盘 (true/false)

6、


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/yw/11847824.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-05-19
下一篇2023-05-19

发表评论

登录后才能评论

评论列表(0条)

    保存