摘要: 实现图像半透明的方法挺多,无论是filter滤镜、mask遮罩、opacity透明度设置都可以实现 要用background-image背景图片实现的话,可能第一个就会想到使用::before、::after伪元素实现,例如: .box { position: relative; z-index: 阅读全文
posted @ 2020-07-10 11:30 超哥20 阅读(1012) 评论(0) 推荐(0) 编辑
摘要: 在触屏设备下,要判断是单指还是多指操作,可以通过event.touches数组对象的长度判断 例如: document.addEventListener('touchstart',function(event){ var touches = event.touches; if(touches.len 阅读全文
posted @ 2020-07-10 10:56 超哥20 阅读(2683) 评论(0) 推荐(0) 编辑