CSS와 JavaScript
document.querySelector("selectors").style.backgroundColor = "yellow"; document.querySelector("selectors").style.WebkitOverflowScrolling = "touch" | "auto;window.getComputedStyle(element[, pseudoElt]); let div = document.querySelector('div'); let color = window.getComputedStyle(div).getPropertyValue('color');document.querySelector("selectors").offsetWidth; document.querySelector("selectors").clientHeight; document.querySelector("selectors").scrollWidth;window.innerWidth; // border 내부 너비 window.innerHeight; // border 내부 높이window.screen.availWidth; // 실제 사용 가능한 화면 너비 window.screen.availHeight; // 실제 사용 가능한 화면 높이
Reference
Last updated


