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