(编辑:jimmy 日期: 2024/12/29 浏览:2)
以下操作写在body里面,form表单外
<iframe id="agentFrame" name="agentFrame" src="/UploadFiles/2021-04-02/">test.jsp如下:
<%@ page contentType="text/html;charset=GBK" language="java"%> <script> function pseth() { var iObj = parent.parent.document.getElementById('infoFrame'); iObjH = parent.parent.frames["infoFrame"].frames["agentFrame"].location.hash; iObj.style.height = iObjH.split("#")[1]+"px"; } window.onload=pseth(); </script>