스크립트 중복 방법1 [제이쿼리] 스타일 중복으로 넣을때 소스, 중복스타일, 테이블선택자 코딩/제이쿼리 2014. 9. 1. /* 짝수 tr 영역 */ $(document).ready(function(){ $('table.basic').find('tr:nth-child(even)').children().css({color:'#585858',backgroundColor:'#f1f2f3'}); }); {}대괄호로 묶고 그 안에 속성을 나열한다. DIVTEST 백그라운드 포지션같은경우 $(".quick ul li a").hover(function(){ $(this).css("background-position-y","-63px"); }, function(){ $(this).css("background-position-y","0"); }); 이전 1 다음
Comments