• <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| 久久亚洲AV成人出白浆无码国产 | 人妻丰满?V无码久久不卡| 久久久久久久久66精品片| 久久久久亚洲精品天堂| 99久久国产亚洲高清观看2024| 久久午夜无码鲁丝片午夜精品| 久久久高清免费视频| 九九精品99久久久香蕉| 久久本道久久综合伊人| 久久久久亚洲av无码专区喷水 | 久久久午夜精品| 久久综合九色综合久99| 国产成年无码久久久免费| 久久99精品国产99久久6| 日日躁夜夜躁狠狠久久AV| 久久久久久噜噜精品免费直播| 性欧美丰满熟妇XXXX性久久久| 青春久久| 精品欧美一区二区三区久久久| 久久久久亚洲精品天堂| yy6080久久| 久久涩综合| 久久久久国产一级毛片高清板| 久久久无码一区二区三区| 久久人人爽人人爽人人片AV高清 | 中文字幕精品久久久久人妻| 伊人色综合久久| 一级做a爰片久久毛片16| 久久国产亚洲精品无码| 亚洲欧美伊人久久综合一区二区 | 久久线看观看精品香蕉国产| 久久夜色精品国产噜噜噜亚洲AV| 亚洲欧洲久久av| 久久久国产打桩机| 99精品久久精品一区二区| 亚洲AV日韩AV永久无码久久| av色综合久久天堂av色综合在|