1、alert 在iOS上会显示一个网页地址,去除方法如下:
<script>
window.alert = function(name){
var iframe = document.createElement("IFRAME");
iframe.style.display="none";
iframe.setAttribute("src", "data:text/plain,");
document.documentElement.appendChild(iframe);
window.frames[0].window.alert(name);
iframe.parentNode.removeChild(iframe);
}
</script>
2、点击一些对象时,iOS 会产生的半透明灰阴影效果, Android 也会产生红圈效果,去除方法如下:
<style>
a,input{-webkit-tap-highlight-color:rgba(255,0,0,0);} // 去除A/INPUT标签的点击阴影
<style>