css 콜백 썸네일형 리스트형 3-11 css 메서드 콜백 함수 DOCTYPE html>Insert title here$(function(){//배열 생성 - index 0 , 1, 2var color =['red','blue','purple'];// 문서 객체의 스타일을 변경// css() 메서드에서 두 번째 매개변수에 함수를 사용해서 개별적으로// 스타일 속성을 적용할 떄 사용$('h1').css('color',function(index){return color[index];})});Header-0Header-0Header-0 DOCTYPE html>Insert title here$(function(){//배열 생성 - index 0 , 1, 2var color =['red','blue','purple']; $('h1').css({'color': function(.. 더보기 이전 1 다음