기본 선택자

기본 선택자

//기본 선택자
//태그 선택자
$("li").css({backgroundColor:"#bbdefb", border:"1px dashed #303f9f"});

//클래스 선택자
$(".list4").css({backgroundColor:"#bbdefb", border:"1px dashed #303f9f"});  

//아이디 선택자 
$("#list1").css({backgroundColor:"#bbdefb", border:"1px dashed #303f9f"});  

//전체 선택자
$("*").css({backgroundColor:"#bbdefb", border:"1px dashed #303f9f"});   

//그룹 선택자
$(".list5, .list8, .list9").css({backgroundColor:"#bbdefb", border:"1px dashed #303f9f"});  

Last updated

Was this helpful?