Movatterモバイル変換


[0]ホーム

URL:


menu
  1. Dart
  2. dart:html
  3. Element
  4. offsetTo method
offsetTo
description

offsetTo method

Point<num>offsetTo(
  1. Elementparent
)

Provides the offset of this element'sborderEdge relative to thespecifiedparent.

This is the Dart equivalent of jQuery'sposition method. Unlike jQuery'sposition, however,parent can be any parent element ofthis,rather than onlythis's immediateoffsetParent. If the specifiedelement isnot an offset parent or transitive offset parent to thiselement, anArgumentError is thrown.

Implementation

Point offsetTo(Element parent) {  return Element._offsetToHelper(this, parent);}
  1. Dart
  2. dart:html
  3. Element
  4. offsetTo method
Element class

[8]ページ先頭

©2009-2025 Movatter.jp