图片的穿透效果 -- pointer-events: none
使用场景:当我们需要选择上传文件的时候,图片把input输入框覆盖在上面,点击的时候不能出发input输入框所以要给图片设置穿透属性 ;
具体代码:
#image { position: fixed; width: 5%; z-index: 10000; pointer-events: none; }
卷帝
使用场景:当我们需要选择上传文件的时候,图片把input输入框覆盖在上面,点击的时候不能出发input输入框所以要给图片设置穿透属性 ;
具体代码:
#image { position: fixed; width: 5%; z-index: 10000; pointer-events: none; }