懸停屬性可以說我有刪除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