通过本文主要向大家介绍了jquery,添加样式,dom等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
<script type="text/javascript">
xx = function(){
//$("#categories div").eq(6).css("color","#000000");
$("#categories div").eq(6).addClass("xxx");
}
</script>
<style>
.xxx{}
.xxx a{color:#ff0000;}
</style>
xx = function(){
//$("#categories div").eq(6).css("color","#000000");
$("#categories div").eq(6).addClass("xxx");
}
</script>
<style>
.xxx{}
.xxx a{color:#ff0000;}
</style>