Background color on input type=button :hover state sticks in IE

前端 未结 3 1462
抹茶落季
抹茶落季 2021-01-02 10:34

I have an input type=button with a background color set and a different one on :hover - see http://jsfiddle.net/hc2Eu/3/

In IE (all versions) - when I mouse down on

3条回答
  •  隐瞒了意图╮
    2021-01-02 10:56

    Try using the type attribute selector to find buttons (maybe this'll fix it too):

    input[type=button]
    {
      background-color: #E3E1B8; 
    }
    
    input[type=button]:hover
    {
      background-color: #46000D
    }
    

提交回复
热议问题