classList (1) 썸네일형 리스트형 [자바스크립트 js] 스타일 프로퍼티 / 스타일 변경 / 클래스 추가 / className / classList (add, remove, toggle) const tooktak = document.querySelector('#뚝딱'); const doeggabi = document.querySelector('#도깨비'); 1 스타일 프로퍼티를 활용해서 요소의 스타일을 직접 수정하기 tooktak.children[0].style.textDecoration = 'line-through'; // 글씨 중간에 줄 긋 tooktak.children[0].style.backgroundColor = '#000000'; // 배경색 검정색 스타일 프로퍼티는 카멜표기법을 사용해서 입력해야 한다. .text-decoration (x) / .textDecoration (o) 프로퍼티만 카멜표기법이고, 프로퍼티의 할당값은 css에서 사용하는 그대로 사용한다. line-thr..