• <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>

            逛奔的蝸牛

            我不聰明,但我會(huì)很努力

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

            <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() {

                    // 動(dòng)態(tài)加載iframe. iframe的大小,必須在同一個(gè)域中才可以這樣計(jì)算.

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

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

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

                        // 對(duì)于寬度,不要使用find("body"),這個(gè)返回的值不準(zhǔn)確

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

                    

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

                        // 自動(dòng)適應(yīng)iframe的大小,不用像上一個(gè)方法那樣麻煩的

                        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 逛奔的蝸牛 閱讀(1196) 評(píng)論(0)  編輯 收藏 引用 所屬分類: Java其他編程
            99久久人妻无码精品系列| 久久久久久国产精品美女| 久久久精品免费国产四虎| 久久中文字幕一区二区| 久久夜色撩人精品国产| 久久亚洲日韩精品一区二区三区| 99久久精品国内| 久久久久人妻一区二区三区| 久久国产精品无码HDAV| 久久精品无码免费不卡| 久久国产亚洲精品| 国产成人精品久久亚洲高清不卡 | 狠狠色丁香久久婷婷综合蜜芽五月| 国产亚洲精品美女久久久| 天天影视色香欲综合久久| 久久噜噜电影你懂的| 亚洲精品国产美女久久久| 久久亚洲精品国产精品婷婷 | 国内精品久久久久影院亚洲| 性做久久久久久久| 久久久这里只有精品加勒比| 天天综合久久久网| 99久久成人国产精品免费| 久久精品日日躁夜夜躁欧美 | 午夜精品久久久久久毛片| 亚洲а∨天堂久久精品| 久久精品国产国产精品四凭| 99久久精品免费观看国产| MM131亚洲国产美女久久| 无码人妻久久一区二区三区| 精品人妻伦九区久久AAA片69| 久久婷婷五月综合色99啪ak| 久久93精品国产91久久综合| 精品久久久久久无码国产| 久久福利片| 日日狠狠久久偷偷色综合免费| 久久国产精品免费| 亚洲精品美女久久久久99小说| 伊人情人综合成人久久网小说| 波多野结衣久久一区二区| 久久国产AVJUST麻豆|