• <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 逛奔的蝸牛 閱讀(1191) 評論(0)  編輯 收藏 引用 所屬分類: Java其他編程
            久久午夜无码鲁丝片秋霞 | 99久久超碰中文字幕伊人| 久久精品成人影院| 日韩精品无码久久一区二区三| 久久99热这里只频精品6| 超级碰碰碰碰97久久久久| 麻豆亚洲AV永久无码精品久久| 亚洲午夜久久久久久久久电影网| 亚洲中文字幕久久精品无码喷水| 无码人妻久久一区二区三区免费丨 | 97精品国产91久久久久久| 久久99精品久久久久久野外 | 日韩美女18网站久久精品| 中文字幕久久精品无码| 99国产欧美精品久久久蜜芽| 看全色黄大色大片免费久久久 | 色欲久久久天天天综合网| 精品久久久久久国产91| 亚洲国产小视频精品久久久三级 | 久久99国产一区二区三区| 人妻中文久久久久| 国产精品久久久久…| 久久狠狠爱亚洲综合影院 | 久久精品综合网| 亚洲国产精品久久久久婷婷软件| 亚洲精品99久久久久中文字幕 | 亚洲七七久久精品中文国产 | 久久伊人精品青青草原高清| 国产亚洲精品久久久久秋霞| 久久久噜噜噜久久| 久久精品人人做人人爽电影| 久久综合噜噜激激的五月天| 久久精品综合网| 一本久久a久久精品亚洲| 无码人妻久久一区二区三区| 亚洲国产精品无码久久久蜜芽| 国产精品久久久久久久久久影院 | 一本一道久久a久久精品综合| 99久久精品免费国产大片| 久久超碰97人人做人人爱| 亚洲午夜无码AV毛片久久|