悬停属性可以说我有删除CSS:用jQuery
<style>
#container:hover{background:red}
</style>
<div id="container"><input type="submit"></div>
当我将鼠标悬停在提交,#container
仍为红色。我可以删除:悬停在输入与jQuery的mouseover?我不想改变bg $('#container').css('backgroundColor','color')
,我需要类似$('#container').removeAttr('hover')
。
对不起,没有一个选项,我需要回#container解除状态 –
但使用组合的问题是什么:'#container.red:hover {background:red; }'? – VisioN