我为图像添加了“taphold”jquerymobile 事件。当我在 ipad 中点击该图像时,我会弹出以下由浏览器抛出的弹出窗口。如何避免这种情况?

我为图像添加了“taphold”jquerymobile 事件。当我在 ipad 中点击该图像时,我会弹出以下由浏览器抛出的弹出窗口。如何避免这种情况?

这可能是一个很长的镜头,但试试 CSS 规则
-webkit-user-select: none;
它可能会阻止弹出窗口出现。
希望能帮助到你 :)
这有助于
img
{
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-ms-user-select: none;
-moz-user-select: none;
user-select: none;
}