• <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精品久久久久久齐齐| 精品国产乱码久久久久软件| 国产综合久久久久久鬼色| 久久九九久精品国产| 久久精品亚洲精品国产色婷 | 香蕉久久永久视频| 精品国产乱码久久久久久郑州公司 | 久久黄视频| 久久91精品国产91久久麻豆| 亚洲伊人久久综合中文成人网| 俺来也俺去啦久久综合网| 欧美午夜A∨大片久久| 热re99久久精品国产99热| 久久国产乱子伦免费精品| 久久人妻少妇嫩草AV蜜桃| 久久久精品久久久久久| 9191精品国产免费久久| 日韩人妻无码精品久久久不卡 | 亚洲狠狠婷婷综合久久久久| 久久免费视频6| 99久久国产综合精品五月天喷水 | 久久99国产精品成人欧美| 狠狠色丁香久久综合婷婷| 久久国产色AV免费观看| 思思久久精品在热线热| 亚洲日韩欧美一区久久久久我| 精品免费久久久久国产一区| 国产精品成人99久久久久| 99久久精品免费看国产| 国产精品伊人久久伊人电影| 国产精品欧美久久久久无广告| 99久久精品费精品国产| 国产精品亚洲美女久久久| 久久国产成人亚洲精品影院| 久久久久人妻一区精品 | 久久久久亚洲精品天堂| 国产成人精品白浆久久69|