解决办法
1、移除全部样式使用removeattr(“style”);
2、移除单个样式使用css(“属性”,“”);
例如:
<script type="text/javascript">
$(function(){
$("li").mouseover(function(){
$(this).css("background","#ffdd00");
});
$("li").mouseout(function(){
$(this).css("background","");
});
});
</script>