Make a whole div clickable with working :active css rule in IE10

前端 未结 5 523
抹茶落季
抹茶落季 2021-01-04 00:46

I\'m designing a clickable panel for an html app which contains multiple text elements and images.

From what I understand this is generally done with a div. Somethin

5条回答
  •  盖世英雄少女心
    2021-01-04 01:41

    .myButton:active, .myButton *:active{
      -ms-transition-duration: 0.2s;
      -ms-transform: scale(0.95);
    }
    

    I will be honest I have no idea if you can use *:pseudo-selector in IE but chrome you can so it's worth a shot.

提交回复
热议问题