submit input doesn't get the :active state in IE8 when I click on the button’s text

后端 未结 4 2019
渐次进展
渐次进展 2021-01-16 14:46

In IE8 if I click exactly on the text-value on a submit button, it doesn\'t get the properties from the input:active CSS selector.

But if I click elsewh

4条回答
  •  误落风尘
    2021-01-16 15:15

    you can achieve this by applying input:focus to your input:active selector declaration:

    input:active,input:focus{background-color:#000}
    

    applying :active and :focus together are great for ui/ux/etc.... a lot of things.

提交回复
热议问题