• <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成人网人人网站 | 77777亚洲午夜久久多人| 亚洲精品国产字幕久久不卡| 久久久久久狠狠丁香| 最新久久免费视频| 国产亚洲精品自在久久| 色欲综合久久躁天天躁| 久久一日本道色综合久久| 久久99久久成人免费播放| 中文字幕无码av激情不卡久久| 久久A级毛片免费观看| 日本精品久久久久影院日本| 久久国产精品一国产精品金尊| 亚洲国产成人久久综合野外| 88久久精品无码一区二区毛片| 天天躁日日躁狠狠久久| 久久强奷乱码老熟女| 久久99国产精品99久久| 99久久无码一区人妻a黑| 色欲综合久久躁天天躁蜜桃| 国产精品久久久久蜜芽| 中文精品久久久久人妻| 久久久久国产成人精品亚洲午夜| 久久精品亚洲日本波多野结衣| 久久性精品| 久久久噜噜噜久久中文字幕色伊伊| 国产精品欧美久久久天天影视| 久久棈精品久久久久久噜噜| 亚洲精品无码久久久久久| 亚洲日本va午夜中文字幕久久| 久久久无码精品午夜| 久久天天躁狠狠躁夜夜不卡| 久久精品国产99国产精品| 中文精品久久久久国产网址| 久久亚洲国产欧洲精品一| 国产精品岛国久久久久| 91亚洲国产成人久久精品网址| 91精品国产91久久久久久蜜臀| 国产精品熟女福利久久AV| 狠狠色丁香久久综合五月|