简体   繁体   中英

IE10 gray square on click in Windows 8

How to disable this horrible design stuff of microsoft programmers? It's happens when I click on links. Another horrible feature is dotted border on input elements. In past, this border disappear by adding outline: none to focus state of inputs.

Try the following meta

<meta name="msapplication-tap-highlight" content="no" /> 

It works for IE10/Windows Phone 8, not sure about Windows 8.

For whatever reason the meta tag didn't work for me on Windows 7 IE10, and I had to set

a:active{
  background: inherit;
}
background: inherit; 

Above does not work if your background color is differently set or has multiple settings.

Below is fail proof.

a:active{
background: none;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM