---
title: "prototype.js1.7.1在IE下getOffsetParent()会返回body"
author: "Nonkr"
date: "2013-07-29T20:32:13Z"
tags: []
categories: ["Web前端"]
slug: "prototype-js1-7-1-ie-getoffsetparent-body"
draft: false
lastmod: "2013-07-29T20:32:13Z"
id: 1915198
url: "https://nonkr.iteye.com/blog/1915198"
---

prototype1.7.1在IE下getOffsetParent()会返回body

可用ancestors()\[0]