IOS 当图像处于模态 div 时,长按没有 "save image" 选项
IOS long press does not have "save image" option when image is in a modal div
举个例子。
https://mariandioguardi.com/paintings/cat.asp?c=Not+So+%3Ci%3EStill+Life%3C%2Fi%3E
点击一张 300 像素的图片,您会看到一个带有 1200 像素图片的模态 div。但是长按那个模态图像只会给出选项 "copy - look up - share..."
问题:如何启用保存图像(到照片)选项?
右键单击在 Win-10 pc 运行 Chrome 或 edge 上工作正常,但长按方法在 ipad 和 iphone 上都失败 - 两者野生动物园和 chrome。我是运行IOS13.2.3
我尝试将指针事件显式设置为自动,但没有区别。
谢谢! jb
看来是因为这两件事:
#modal-outer
有 -webkit-touch-callout: none;
.modal-img
有 pointer-events: none;
举个例子。
https://mariandioguardi.com/paintings/cat.asp?c=Not+So+%3Ci%3EStill+Life%3C%2Fi%3E
点击一张 300 像素的图片,您会看到一个带有 1200 像素图片的模态 div。但是长按那个模态图像只会给出选项 "copy - look up - share..."
问题:如何启用保存图像(到照片)选项?
右键单击在 Win-10 pc 运行 Chrome 或 edge 上工作正常,但长按方法在 ipad 和 iphone 上都失败 - 两者野生动物园和 chrome。我是运行IOS13.2.3
我尝试将指针事件显式设置为自动,但没有区别。
谢谢! jb
看来是因为这两件事:
#modal-outer
有-webkit-touch-callout: none;
.modal-img
有pointer-events: none;