jquery 获取dom固定元素 添加样式的简单实例
更新时间:2014年02月04日 10:23:58 作者:
本篇文章主要是对jquery获取dom固定元素 添加样式的简单实例进行了介绍,需要的朋友可以过来参考下,希望对大家有所帮助
<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>
相关文章
jQuery遍历之next()、nextAll()方法使用实例
这篇文章主要介绍了jQuery遍历之next()、nextAll()方法使用实例,本文先是给出了实例代码,然后对代码的作用分析和说明,需要的朋友可以参考下2014-11-11


最新评论