Anchor

한 페이지에서 스크롤하기 위한 하이퍼링크입니다.

언제 사용하나요

  • 페이지에 앵커 하이퍼링크를 표시하고 그 사이를 이동하기 위해.

기본

가장 간단한 사용법.

정적 앵커

페이지가 스크롤될 때 상태를 변경하지 않습니다.

수평 앵커

가로로 정렬된 앵커.

API 참조

Anchor

속성
설명
타입
기본값

affix

Fixed mode of Anchor boolean true

bounds

Bounding distance of anchor area, unit: px number 5

offsetTop

Pixels to offset from top when calculating position of scroll number 0

targetOffset

Anchor scroll offset, default as offsetTop number -

container

Scrolling container selector string 'window'

direction

Set Anchor direction 'vertical' | 'horizontal' 'vertical'
속성
설명
타입
기본값

href

target of hyperlink string -

title

content of hyperlink string -

target

Specifies where to display the linked URL string -