• <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 逛奔的蝸牛 閱讀(1190) 評論(0)  編輯 收藏 引用 所屬分類: Java其他編程
            久久国产美女免费观看精品 | 九九久久精品无码专区| 久久国产免费观看精品3| av午夜福利一片免费看久久| MM131亚洲国产美女久久| 国产AⅤ精品一区二区三区久久| 久久性生大片免费观看性| 久久这里的只有是精品23| 国产亚洲婷婷香蕉久久精品 | 伊人久久成人成综合网222| 无码专区久久综合久中文字幕 | 情人伊人久久综合亚洲| 精品水蜜桃久久久久久久| 亚洲伊人久久大香线蕉综合图片| 好久久免费视频高清| 国产成人精品综合久久久久| 国产精品免费久久| 欧美午夜精品久久久久免费视| 国产精品99久久久久久www| 久久综合给合久久国产免费| 久久久久久国产精品免费免费| 亚洲精品国产字幕久久不卡| 精品久久久久久国产免费了| 亚洲av成人无码久久精品| 亚洲欧美国产精品专区久久| 国产精品gz久久久| 国产精品久久久久久影院| 无码AV波多野结衣久久| 波多野结衣久久一区二区| 久久久精品波多野结衣| 久久精品国产精品国产精品污| 久久久SS麻豆欧美国产日韩| 久久伊人精品一区二区三区| 久久久久久久综合综合狠狠| 久久久99精品成人片中文字幕| 久久这里只精品国产99热| 久久本道伊人久久| 曰曰摸天天摸人人看久久久| 久久亚洲国产精品一区二区| 国产69精品久久久久99| 精品无码人妻久久久久久 |