用phonegap生成的hybird app,在使用中发现,长按会使选择区域出现“蒙板式”的阴影,并有“复制、粘贴”等提示,这与原生开发的app不同,屏蔽方法为:
*{
-webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */
-webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */
-webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
-webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */
}