A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/ko/docs/Web/API/HTMLElement/offsetParent below:

HTMLElement.offsetParent - Web API | MDN

HTMLElement.offsetParent

Baseline Widely available

HTMLElement.offsetParent 읽기전용 프라퍼티는 가장 가까운 (포함 계층에서 가장 가까운) 위치가 정해진 포함하는 엘리먼트 객체에 대한 참조를 반환한다. offsetParent는 엘리먼트의 위치가 정해지지 않으면 가장 가까운 테이블 또는 테이블 셀, 루트 엘리먼트 (표준 준수 모드에서는 html; quirks 렌더링 모드에서는 body) 를 반환한다. 엘리먼트의 style.display가 "none"으로 설정되면 null을 반환한다. offsetParent는 offsetTop과 offsetLeft가 그것의 패딩 모서리에 상대적이기 때문에 유용하다.

문법
parentObj = element.offsetParent;
명세 브라우저 호환성

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4