2010-03-28 6 views

답변

2
var $blueEles = $("*").filter(function() { 
    return $(this).css("color") == 'blue'; 
}); 
$blueEles.each(function() { 
    alert(this.id); 
}); 
$blueEles.hide(); 
// etc 
+0

IE가 아닌 브라우저의 경우에는 작동하지 않습니다. 그들은 모두'rgb (0,0,255)'를 반환합니다. –

관련 문제