1

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

在此处输入图像描述

4

2 回答 2

2

这可能是一个很长的镜头,但试试 CSS 规则

-webkit-user-select: none;

它可能会阻止弹出窗口出现。

希望能帮助到你 :)

于 2012-11-06T14:44:44.937 回答
1

这有助于

  img
  {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    user-select: none;
   }
于 2012-11-07T09:57:21.957 回答