auto adjust ifram height
This commit is contained in:
parent
8a940330e2
commit
3f7ac44875
BIN
APIServer.exe
BIN
APIServer.exe
Binary file not shown.
11
Index.html
11
Index.html
@ -8,8 +8,15 @@
|
|||||||
ul,li {margin: 0px; padding: 0px; list-style-type: none;}
|
ul,li {margin: 0px; padding: 0px; list-style-type: none;}
|
||||||
label {font-family: Consolas; font-size: 16px;}
|
label {font-family: Consolas; font-size: 16px;}
|
||||||
input {width: 250px; height: 20px; font-family: monospace; font-size: 14px;}
|
input {width: 250px; height: 20px; font-family: monospace; font-size: 14px;}
|
||||||
iframe {word-wrap: break-word; position: static; border: 0; top: 0px; left: 0px; min-width: 1000px; min-height: 1000px;}
|
iframe {word-wrap: break-word; position: static; border: 0; top: 0px; left: 0px; width: 100%;}
|
||||||
</style>
|
</style>
|
||||||
|
<script>
|
||||||
|
function adjustIFrame() {
|
||||||
|
var ifm= document.getElementById("result");
|
||||||
|
//ifm.contentWindow.document.body.scrollHeight;
|
||||||
|
ifm.height = ifm.contentWindow.document.documentElement.scrollHeight;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body leftmargin="10px" >
|
<body leftmargin="10px" >
|
||||||
<h4>机台测试记录查询</h4>
|
<h4>机台测试记录查询</h4>
|
||||||
@ -24,6 +31,6 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</form>
|
</form>
|
||||||
<br/>
|
<br/>
|
||||||
<iframe title="result" name="result" frameborder="no" marginwidth="0" marginheight="0"></iframe>
|
<iframe title="result" name="result" id="result" scrolling="no" onload="adjustIFrame();"></iframe>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user