jquery li a 样式

jQuery(".CwebtopNavContainer").find("li:last a").css("color","red");

 

jQuery(document).ready(function () {
           var MyDate=new Date();
    
           jQuery("#gsggDiv li").each(function(){
             var publicDate=new Date(jQuery(this).find(".gsggDatePublic").text());
             var overDate=new Date(jQuery(this).find(".gsggDateOver").text());
             if(Date.UTC(publicDate)<=Date.UTC(MyDate)&&Date.UTC(overDate)>=Date.UTC(MyDate))
             {
             jQuery(this).find(".gsggImage").attr("src","/nhb/Themes/Default/Css/Images/ico06.gif");
             }
   });          
        });

posted @ 2015-11-25 10:12  717806198  阅读(172)  评论(0编辑  收藏  举报