jquery 获取dom固定元素 添加样式的简单实例
网络编程 发布日期:2024/10/9 浏览次数:1
正在浏览: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>