2013-01-02 8 views
6

Android WebViewにhtmlページを表示すると、クリックされた要素にhrefやjavascript関数がフックされた青色のオーバーレイが常に表示されます。この青いオーバーレイを削除するにはどうすればよいですか?OnClickの青いオーバーレイ

enter image description here

ソースコード

<html> 
    <head> 
    <title>Blue Overlay</title> 
    <style> 
    *{margin:0;padding:0;/* get rid of the default 2 pixels margin */ 
    } 
    body{background-color: #000000;} 

    /* button-related CSS */ 
    a.button{ 
     background: url("img/icon_bt.png") no-repeat scroll center center transparent; 
     display: block; 
     text-decoration: none;/*remove the blue underline*/ 
     width: 70px; 
     height: 70px; 
     margin: 50px; 
    } 
    a.button:active{ 
     background-image: url("img/icon_bt_pressed.png"); 
    } 

    </style> 
</head> 
<body> 
    <a class="button" href="#"></a> 
    </body> 
</html> 
+0

これは関連性がありますか? http://stackoverflow.com/questions/7398763/android-browser-remove-outline-border-when-anchor-is-focused – hayavuk

答えて

10

私はtried itさんとは違う画像で動作しています。基本的に、私はちょうどaで提案されたものを追加しましたdifferent topic

a:button { 
    ... 
    -webkit-tap-highlight-color: rgba(0,0,0,0); 
} 
+0

はい。できます!ありがとう〜Android 3.2でテスト済み – BayOtter

0

私はわからないけど、多分画像は、青色のオーバーレイを持っている(とだけではなくリンクRESP。タグ)。したがって、それを取り除く: ...

関連する問題