기본선택자

$("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"});  //전체 선택자
$(".list4, .list8, .list9").css({backgroundColor:"#BBDEFB", border:"1px dashed #303F9F"});  //그룹 선택자

Last updated

Was this helpful?