zoukankan      html  css  js  c++  java
  • iframe高度随时调整

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head><title>
        峨眉山--文章预览
    </title>
        <script type="text/javascript">
            
    function SetWinHeight(obj) {
                
    var win = obj;
                
    if (document.getElementById) {
                    
    if (win && !window.opera) {
                        
    if (win.contentDocument && win.contentDocument.body.offsetHeight)
                            win.height 
    = win.contentDocument.body.offsetHeight;
                        
    else if (win.Document && win.Document.body.scrollHeight)
                            win.height 
    = win.Document.body.scrollHeight;
                    }
                }
            }
        
    </script>
    </head>
    <body>
        <iframe id='iframeTag' onload='Javascript:SetWinHeight(this)' width='100%' height='1000' frameborder='0' scrolling='no' src='Article.aspx?SysNo=64&CategorySysNo=36&type=1'></iframe>
    </body>
    </html>
  • 相关阅读:
    Android 动画-alpha(渐变透明度动画效果)
    Memento(备忘录)
    Mediator(中介者)
    Iterator(迭代器)
    Command(命令)
    Chain of Responsibility(责任链)
    Template Method(模板方法)
    Interpreter(解释器)
    Proxy(代理)
    Flyweight(享元)
  • 原文地址:https://www.cnblogs.com/bober/p/2720284.html
Copyright © 2011-2022 走看看