• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            逛奔的蝸牛

            我不聰明,但我會很努力

               ::  :: 新隨筆 ::  ::  :: 管理 ::

            <html>


            <head>

                <meta http-equiv="Content-type" content="text/html; charset=UTF-8">

                

                <style type="text/css"></style>

                

                <script src="js/jquery.js"></script>

                <script type="text/javascript">

                /*To determine the size of the IFrame's contents, you must access the height and width properties of the underlying IFrame document. Because you only have scripting access to pages that are hosted in the same domain, you can only access the properties to the pages that are hosted within the same domain (for example, Cross Frame Scripting). Therefore, the source document of the IFrame must be from the same domain as the page that contains the IFrame. From: http://support.microsoft.com/kb/278469*/

                

                $(function() {

                    // 動態加載iframe. iframe的大小,必須在同一個域中才可以這樣計算.

                    $("#info").load(function(data) {

                        $(this).height($(this).contents().find("#wrapper").height());

                        $(this).width($(this).contents().find("#wrapper").width());

                        // 對于寬度,不要使用find("body"),這個返回的值不準確

                    }).attr("src", "2col.html");

                    

                    $("#ifm").load(function() {

                        // 自動適應iframe的大小,不用像上一個方法那樣麻煩的

                        var body = this.contentDocument.body;

                        this.style.pixelWidth  = body.scrollWidth;

                        this.style.pixelHeight = body.scrollHeight;

                    }).attr("src", "2col.html");

                });

                </script>

            </head>

            <body>

                Size of iframe<br>

                <!--<iframe src="2col.html" id="info" name="info" frameborder="0" scrolling="no" marginwidth="0" marginheight="0"></iframe>-->

                

                <iframe id="ifm" src="2col.html" frameBorder=0 scrolling=no>

            </body>

            </html>

            posted on 2010-10-29 14:16 逛奔的蝸牛 閱讀(1192) 評論(0)  編輯 收藏 引用 所屬分類: Java其他編程
            久久久久免费看成人影片| 国产精品久久久久久久久鸭| 亚洲国产日韩欧美综合久久| 久久久久久青草大香综合精品 | 久久久亚洲欧洲日产国码是AV| 久久久一本精品99久久精品88| 久久精品99久久香蕉国产色戒| 国产真实乱对白精彩久久| 久久午夜福利无码1000合集| 久久99精品国产自在现线小黄鸭| 久久精品国产99国产精品| 久久综合给合久久狠狠狠97色 | 人妻精品久久久久中文字幕 | 色综合久久久久| 久久精品国产亚洲AV香蕉| 好久久免费视频高清| 99精品久久久久久久婷婷| 大蕉久久伊人中文字幕| 久久精品aⅴ无码中文字字幕不卡 久久精品aⅴ无码中文字字幕重口 | 91亚洲国产成人久久精品| 国产亚洲精久久久久久无码77777 国产亚洲精品久久久久秋霞 | 色婷婷噜噜久久国产精品12p| 国内精品九九久久久精品| 久久精品国产亚洲av麻豆图片| 国产综合精品久久亚洲| 久久综合综合久久狠狠狠97色88 | 999久久久国产精品| 国产一级持黄大片99久久| 无码专区久久综合久中文字幕 | 久久综合国产乱子伦精品免费| 一本色道久久88综合日韩精品| 色成年激情久久综合| 国产精品久久国产精品99盘 | 成人国内精品久久久久一区| av色综合久久天堂av色综合在 | 精品国产综合区久久久久久| 久久亚洲国产中v天仙www | 久久er国产精品免费观看2| 国产精品毛片久久久久久久| 精品熟女少妇av免费久久| 久久国产精品一国产精品金尊 |