---
title: "iframe 自适应高度"
author: "angkorpeach"
date: "2009-06-19T16:14:51Z"
tags: []
slug: "iframe"
draft: false
lastmod: "2009-06-19T16:14:51Z"
id: 411691
url: "https://angkor.iteye.com/blog/411691"
---

```
<iframe id="iFrame1" name="iFrame1" width="100%" onload="this.height=iFrame1.document.body.scrollHeight" frameborder="0" src="index.htm"></iframe>
```