Remove 3D press effect Internet Explorer button

后端 未结 3 1433
醉梦人生
醉梦人生 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条回答
  •  猫巷女王i
    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.

提交回复
热议问题