Remove 3D press effect Internet Explorer button

后端 未结 3 1420
醉梦人生
醉梦人生 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:26

    transform: translate(0, 0); works for IE11. Thanks @tomekwi.

    My button text that was jumping was inside a ::before pseudo element, so I used the following to solve the issue:

    .myButton:active::before {
        transform: translate(0, 0);
    }
    

    But in the end maybe it's better to just let it jump in IE.

    0 讨论(0)
  • 2020-12-11 06:28

    I try this , it works perfectly .

    button: active span,
    button: focus span{position: relative;top: 0px;left: 0px;}
    
    0 讨论(0)
  • 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

    0 讨论(0)
提交回复
热议问题