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


i have input type=button background color set , different 1 on :hover - see http://jsfiddle.net/hc2eu/3/

in ie (all versions) - when mouse down on button, move off button, mouseup - background color stays in :hover setting until mouse on again.

is there workaround this? preferably not js? (ie6 not necessary)

there might fix <input type="button"> - if there is, don't know it.

otherwise, option seems to replace styled a element.

example: http://jsfiddle.net/uka5v/

.button {     background-color: #e3e1b8;      padding: 2px 4px;     font: 13px sans-serif;     text-decoration: none;     border: 1px solid #000;     border-color: #aaa #444 #444 #aaa;     color: #000 } 

upsides include a element style consistently between different (older) versions of internet explorer without work, , think link looks nicer button :)


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -