• <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其他編程
            亚洲国产精品久久久久久| 久久久噜噜噜久久中文字幕色伊伊| 久久男人Av资源网站无码软件| 中文精品久久久久人妻| 亚洲综合日韩久久成人AV| 久久久久人妻精品一区| 亚洲国产天堂久久综合网站| 亚洲欧美精品一区久久中文字幕| 久久综合偷偷噜噜噜色| 久久精品人人槡人妻人人玩AV| 国产精品美女久久久久AV福利| 狠狠综合久久综合88亚洲| 久久精品国产99国产电影网| 久久综合精品国产一区二区三区 | 国内精品人妻无码久久久影院| 久久99毛片免费观看不卡| 狠狠色丁香久久婷婷综合蜜芽五月| 久久久久人妻精品一区| 香蕉久久夜色精品国产尤物| 国产精品gz久久久| 成人妇女免费播放久久久| 色综合久久夜色精品国产| 国产伊人久久| 噜噜噜色噜噜噜久久| 久久99国产精品99久久| 久久99精品国产麻豆宅宅| 久久996热精品xxxx| 一本色道久久88加勒比—综合| 无码精品久久久天天影视| 2021国内精品久久久久久影院| 久久综合九色综合97_久久久| 亚洲成色www久久网站夜月| 少妇熟女久久综合网色欲| 日本精品一区二区久久久| 欧美国产精品久久高清| 很黄很污的网站久久mimi色| 国产成人久久精品麻豆一区| 日本免费一区二区久久人人澡| AV无码久久久久不卡蜜桃| 国产99精品久久| 国产高潮国产高潮久久久91|