{"json_modified": "2016-06-08T10:10:24.296814", "uuid": "ed37d313-060d-47f3-b57e-40ab85a5aa20", "title": "HTMLElement.offsetParent", "url": "/en-US/docs/Web/API/HTMLElement/offsetParent", "tags": ["API", "NeedsMobileBrowserCompatibility", "NeedsBrowserCompatibility", "Reference", "NeedsMarkupWork", "Property", "CSSOM View"], "translations": [{"uuid": "dabf9f11-9592-458c-b60b-2117748452ca", "title": "element.offsetParent", "url": "/fr/docs/Web/API/HTMLElement/offsetParent", "tags": ["DOM_0", "DOM", "R\u00e9f\u00e9rence_du_DOM_Gecko"], "summary": "Renvoie une r\u00e9f\u00e9rence \u00e0 l'objet qui est l'\u00e9l\u00e9ment conteneur positionn\u00e9 le plus proche (dans la hi\u00e9rarchie de positionnement). Si l'\u00e9l\u00e9ment n'est pas positionn\u00e9, c'est l'\u00e9l\u00e9ment racine (html en mode de respect des standards\u00a0; body en mode de rendu quirks) qui est l'offsetParent.", "localization_tags": [], "locale": "fr", "last_edit": "2014-10-23T22:48:18", "review_tags": []}, {"uuid": "5a772530-4340-455c-8368-29394bab6ef5", "title": "element.offsetParent", "url": "/pl/docs/Web/API/Element/offsetParent", "tags": ["Dokumentacja_Gecko_DOM", "DOM", "Gecko", "Wszystkie_kategorie"], "summary": "offsetParent zwraca referencj\u0119 do obiektu, kt\u00f3ry jest najbli\u017cszym (w hierarchii zawierania si\u0119 element\u00f3w) pozycjonowanym elementem. Je\u017celi element nie jest pozycjonowany, offsetParent jest w\u00f3wczas korze\u0144 dokumentu (html w trybie zgodno\u015bci ze standardami; body w trybie przybli\u017conym).", "localization_tags": [], "locale": "pl", "last_edit": "2014-10-28T06:55:05", "review_tags": []}, {"uuid": "1999d57a-c6e5-4259-9acf-4b3c08df3824", "title": "HTMLElement.offsetParent", "url": "/pt-BR/docs/Web/API/HTMLElement/offsetParent", "tags": [], "summary": "A propriedade somente de leitura HTMLElement.offsetParent
retorna uma refer\u00eancia ao objeto ao qual est\u00e1 contido(mais pr\u00f3ximo na hierarquia do\u00a0conte\u00fado)\u00a0posicionado contendo o\u00a0elemento. Caso o elemento n\u00e3o esteja\u00a0posicionado, mais pr\u00f3ximo a c\u00e9lula da tabela ou do elemento raiz (nos padr\u00f5es do modo de conformidade do\u00a0html; no modo quirks de redenriza\u00e7\u00e3o) \u00e9 o
offsetParent
. quando o elemento est\u00e1 definido\u00a0style.display\u00a0
para \"none\",\u00a0offsetParent
\u00a0retorna null. A propriedade\u00a0offsetParent
\u00a0\u00e9\u00a0\u00fatil\u00a0devido a\u00a0offsetTop
\u00a0e\u00a0offsetLeft
serem\u00a0relativos ao seu preenchimento da borda.", "localization_tags": ["inprogress"], "locale": "pt-BR", "last_edit": "2016-06-08T10:10:20", "review_tags": []}, {"uuid": "b592e464-941d-418d-813e-fefcead2b86d", "title": "HTMLElement.offsetParent", "url": "/zh-CN/docs/Web/API/HTMLElement/offsetParent", "tags": [], "summary": "HTMLElement.offsetParent
\u00a0\u662f\u4e00\u4e2a\u53ea\u8bfb\u5c5e\u6027\uff0c\u8fd4\u56de\u4e00\u4e2a\u6307\u5411\u6700\u8fd1\u7684\uff08closest\uff0c\u6307\u5305\u542b\u5c42\u7ea7\u4e0a\u7684\u6700\u8fd1\uff09\u5305\u542b\u8be5\u5143\u7d20\u7684\u5b9a\u4f4d\u5143\u7d20\u3002\u5982\u679c\u6ca1\u6709\u5b9a\u4f4d\u7684\u5143\u7d20\uff0c\u5219 offsetParent
\u4e3a\u6700\u8fd1\u7684 table
\u5143\u7d20\u5bf9\u8c61\u6216\u6839\u5143\u7d20\uff08\u6807\u51c6\u6a21\u5f0f\u4e0b\u4e3a html
\uff1bquirks \u6a21\u5f0f\u4e0b\u4e3a body
\uff09\u3002\u5f53\u5143\u7d20\u7684 style.display
\u8bbe\u7f6e\u4e3a \"none\" \u65f6\uff0coffsetParent
\u00a0\u8fd4\u56de null
\u3002offsetParent
\u00a0\u5f88\u6709\u7528\uff0c\u56e0\u4e3a offsetTop
\u548c offsetLeft
\u90fd\u662f\u76f8\u5bf9\u4e8e\u5176\u5185\u8fb9\u8ddd\u8fb9\u754c\u7684\u3002", "localization_tags": [], "locale": "zh-CN", "last_edit": "2015-02-24T17:12:22", "review_tags": []}], "modified": "2016-03-07T11:15:37", "label": "HTMLElement.offsetParent", "localization_tags": [], "locale": "en-US", "id": 11588, "last_edit": "2016-03-07T11:15:33", "summary": "The HTMLElement.offsetParent
read-only property returns a reference to the object which is the closest (nearest in the containment hierarchy) positioned containing element. If the element is non-positioned, the nearest table cell or root element (html
in standards compliant mode; body
in quirks rendering mode) is the offsetParent
. offsetParent
returns null when the element has style.display
set to \"none\". The offsetParent
is useful because offsetTop
and offsetLeft
are relative to its padding edge.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Syntax", "title": "Syntax"}, {"id": "Specification", "title": "Specification"}, {"id": "Compatibility", "title": "Browser compatibility"}, {"id": "See_also", "title": "See also"}], "slug": "Web/API/HTMLElement/offsetParent", "review_tags": []}