1、通過each方法,鼠標滑過列表每一項時,樣式改變:
$('#GrowthProcess').find('.pro-time').each(function(i,sender){
$(sender).hover(function(){
$(this).addClass('ac-time');
$(this).css({'fontSize':'16px'});
},function(){
$(this).removeClass('ac-time');
$(this).css('fontSize','14px');
$(this).find('p').css({'position':'static','top':'0'});
if(i == 0){ $(this).addClass('ac-time');}
});
});
2、json數據展示(待續)