通过 PhoneGap Build 从 Android 4.x 应用程序中的图像地图区域中删除突出显示

2024-03-31

我尝试了各种方法来尝试在推动图像的图像映射区域时消除高光。我一次又一次地搜索谷歌,并添加了我能找到的所有CSS代码,希望它能有所帮助..但似乎没有。

An example of what i am talking about: android tablet

我已经添加了:

 -webkit-user-modify: read-write-plaintext-only; 
 border:none; 
 outline: 0; 
 -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
 -khtml-user-select: none; 
 -o-user-select: none;
 -moz-user-select: none;
 -webkit-user-select: none;
 user-select: none;

 * {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
cursor: none !important; 
-webkit-user-modify: read-write-plaintext-only;
-khtml-user-select: none;
    -o-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
outline:none;
border: none;
 }

 img{
    -khtml-user-select: none;
    -o-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
-webkit-user-modify: read-write-plaintext-only;
outline:none;
border: none;
border-style: none;
  }

 body, textarea:focus, input:focus, area:focus{
    outline:none;
    border: none;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0); 
    -khtml-user-select: none;
    -o-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-modify: read-write-plaintext-only;
}

a{
   outline:none !important;
   border: none !important;
}

a img
{
    border:none;
    outline:none;
}

area{
outline:none;
border: none;
-webkit-tap-highlight-color: rgba(255, 255, 255, 0); 
-khtml-user-select: none;
    -o-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-modify: read-write-plaintext-only;
}

#map {
outline:none;
border: none;
-webkit-tap-highlight-color: rgba(255, 255, 255, 0); 
-khtml-user-select: none;
    -o-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-modify: read-write-plaintext-only;
}

 <img height="1024" src="img/MM.png" usemap="#MM_map" width="768" hidefocus="true">
 <area coords="35,116,349,225" href="#HULU" id="HULU_id" onclick="$('#HULU').click();" shape="rect" style="border: none;" onfocus="blur();">

我可以防止这种情况的唯一方法是捕获 ontouchend 事件并通过在处理程序上返回 false 来防止默认浏览器行为。

使用 jQuery:

$("map area").on("touchend", function() {
   return false;
});
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

通过 PhoneGap Build 从 Android 4.x 应用程序中的图像地图区域中删除突出显示 的相关文章

随机推荐