给iframe添加属性οnlοad="javascript:this.height=this.contentWindow.document.body.scrollHeight+30;"
如:
<Iframe src="<%= request.getContextPath() %>/listColumnAction.do" width="100%" style="_width: 100%;"
height="100" scrolling="auto" frameborder="0" name="main" οnlοad="javascript:this.height=this.contentWindow.document.body.scrollHeight+30;"></iframe>