Hover and Active only when not disabled

后端 未结 7 1991
长情又很酷
长情又很酷 2020-12-22 21:29

I use hover, active and disabled to style Buttons.

But the problem is when the button is disabled the hover and ac

相关标签:
7条回答
  • 2020-12-22 22:11

    You can use :enabled pseudo-class, but notice IE<9 does not support it:

    button:hover:enabled{
        /*your styles*/
    }
    button:active:enabled{
        /*your styles*/
    }
    
    0 讨论(0)
提交回复
热议问题