• <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 逛奔的蝸牛 閱讀(1192) 評論(0)  編輯 收藏 引用 所屬分類: Java其他編程
            日韩AV无码久久一区二区| 69久久夜色精品国产69| 国产精品免费久久久久久久久| 中文字幕久久欲求不满| 香蕉99久久国产综合精品宅男自| 亚洲女久久久噜噜噜熟女| 久久精品国产99国产精偷| 四虎影视久久久免费| 久久天天躁狠狠躁夜夜avapp| 久久成人永久免费播放| 久久99精品久久久久久动态图| 久久综合成人网| 91精品国产91久久| 亚洲精品国精品久久99热一| 久久亚洲精品无码播放| 精品久久久久中文字幕日本| 精品伊人久久久| 手机看片久久高清国产日韩 | 久久久国产精华液| 久久久亚洲欧洲日产国码aⅴ| 欧美久久一级内射wwwwww.| 久久99国产精品99久久 | 久久播电影网| 久久精品免费一区二区三区| 久久人人爽人人爽人人AV| 久久精品免费全国观看国产| 久久伊人五月天论坛| 精品久久久久久99人妻| 日本免费久久久久久久网站| 久久精品国产一区| 日韩欧美亚洲综合久久影院d3| av无码久久久久久不卡网站| 国产精品久久久久天天影视| 久久久久亚洲AV无码网站| 久久天堂AV综合合色蜜桃网| 久久久久国产精品熟女影院 | 国产成人精品久久亚洲高清不卡| 久久久久中文字幕| 精品久久久久久久中文字幕| 久久精品无码一区二区三区日韩 | 久久综合久久久|