• <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高清| 成人久久综合网| 久久午夜福利电影| 亚洲精品乱码久久久久久中文字幕 | 亚洲国产精品狼友中文久久久| 亚洲午夜精品久久久久久浪潮| 亚洲国产精品无码成人片久久| 亚洲国产成人久久精品动漫| 久久亚洲AV成人无码| 1000部精品久久久久久久久| 久久国产亚洲精品| 久久精品国产精品青草app| 亚洲欧美日韩久久精品| 青青青青久久精品国产| 一本色道久久HEZYO无码| 久久精品国产亚洲av瑜伽| 狠狠色丁香久久综合婷婷| 久久91精品国产91| 久久99精品国产麻豆不卡| 国产精品美女久久久久网| 亚洲伊人久久大香线蕉综合图片 | 国产高潮国产高潮久久久91 | 久久久久99精品成人片三人毛片 | 久久精品国产欧美日韩| 国产91久久精品一区二区| 久久婷婷五月综合色奶水99啪| 天天影视色香欲综合久久| 97超级碰碰碰碰久久久久| 成人久久综合网| 国产精品久久免费| 国产一区二区三区久久精品| 色诱久久久久综合网ywww| 精品一二三区久久aaa片| 伊人久久大香线蕉亚洲五月天| 亚洲国产精品成人久久蜜臀 | 一级做a爰片久久毛片免费陪| 久久久久亚洲AV无码专区桃色|