DOM

settings_applicationsEventTarget  >   settings_applicationsNode  >   settings_applicationsElement  >   settings_applicationsHTMLElement  >   settings_applications[[Prototype]]

DOM

Editing
  • account_tree
  • bug_report

NumberoffsetTop

위치에 대한 상대적 기준을 갖는 가장 가까운 상위 요소로부터 지정 요소의 상대적 상단 거리(픽셀)를 가지고 있는 읽기 전용 속성이다.

설명

상위 요소들 중에서 position 속성이 모두 static인 기본 값을 가지고 있다면 문서 상단으로 부터의 절대적 거리를 나타내지만 relative 값을 가지고 있는 가장 가까운 상위 요소가 있다면 그 요소로 부터의 상대적 거리를 나타낸다.

구문

형식
htmlElement.offsetTop
상대적 기준인 상위 요소로부터 상단 위치값을 조회한다.

속성 명세

명세
분류설명
writableno

테스트 도구

상대적 기준인 상위 요소로부터 상단 위치값을 조회한다.

버전 명세

지원 웹브라우저