Remove 3D press effect Internet Explorer button

后端 未结 3 1432
醉梦人生
醉梦人生 2020-12-11 06:01

I\'m trying to remove the 3D click effect on buttons in Internet Explorer (I\'m using IE10).

I have tried with:

button:active {
  position:          


        
3条回答
  •  庸人自扰
    2020-12-11 06:49

    Had the same problem right now... It's a bit late, so I don't know whether the answer would still be applicable.

    My solution was to put the button's text within a span element then set the style to transform: translateY(1px);. And no more unnecessary press effect. I was a bit apprehensive before trying it, as it would mess with FF, Chrome, and Safari for Windows. But weirdly, they seem to ignore it (for now at least). Tested on 28, 27, and 5.1 respectively. Also, I'm using IE 10.

    Good luck

提交回复
热议问题