• <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 逛奔的蝸牛 閱讀(1191) 評論(0)  編輯 收藏 引用 所屬分類: Java其他編程
            久久精品麻豆日日躁夜夜躁| 久久精品夜色噜噜亚洲A∨| 欧美精品乱码99久久蜜桃| 香蕉久久夜色精品国产2020| 亚洲va久久久久| 国产欧美久久一区二区| 色欲综合久久躁天天躁| 麻豆AV一区二区三区久久| 成人国内精品久久久久影院VR| 久久久久久国产a免费观看不卡| 久久精品成人欧美大片| 亚洲国产成人久久综合碰碰动漫3d| 亚洲精品国精品久久99热| 国产91久久精品一区二区| 久久综合九色综合久99| 国产精品久久影院| 无码八A片人妻少妇久久| 国产韩国精品一区二区三区久久| 久久亚洲国产最新网站| 91精品国产91久久久久久| 久久久女人与动物群交毛片| 欧美精品九九99久久在观看| 亚洲天堂久久精品| 精品午夜久久福利大片| 色婷婷久久综合中文久久蜜桃av| 一日本道伊人久久综合影| 久久久久一级精品亚洲国产成人综合AV区| 久久精品人人做人人爽电影蜜月| 亚洲AV伊人久久青青草原| 久久久人妻精品无码一区| 99久久精品国产一区二区蜜芽 | 人妻少妇久久中文字幕| 色婷婷久久久SWAG精品| 久久久久久国产精品无码下载 | 伊人久久综在合线亚洲2019 | 久久婷婷五月综合成人D啪| 色综合久久88色综合天天| 久久精品国产91久久麻豆自制| 久久精品国产亚洲AV麻豆网站| 亚洲AV无码久久精品色欲| 亚洲国产精品无码久久SM|