• <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其他編程
            97精品伊人久久久大香线蕉| 国产精品久久久久久| 免费无码国产欧美久久18| 亚洲国产精品久久电影欧美| 久久精品一区二区三区不卡| 国产精品女同一区二区久久| 久久天天躁狠狠躁夜夜avapp| 2022年国产精品久久久久 | 久久免费线看线看| 亚洲国产成人久久综合区| 国产午夜精品久久久久免费视| 国产精品美女久久久久AV福利| 日产精品久久久一区二区| 99久久精品无码一区二区毛片| 亚洲国产欧洲综合997久久| 久久久久无码专区亚洲av| 久久超碰97人人做人人爱| 伊人热热久久原色播放www| 久久香蕉一级毛片| 久久综合给合久久国产免费| 色99久久久久高潮综合影院| 色综合久久综合网观看| 精品综合久久久久久888蜜芽| 久久亚洲天堂| 久久久久国产一级毛片高清板 | 久久噜噜久久久精品66| 久久99热只有频精品8| 无码人妻久久一区二区三区免费| 日批日出水久久亚洲精品tv| 久久久久国产一区二区| 久久久久亚洲精品男人的天堂| 久久久久免费精品国产| 久久亚洲高清观看| 精品久久久久久亚洲精品 | 人妻少妇久久中文字幕| 一本色综合网久久| 区久久AAA片69亚洲| 亚洲欧洲日产国码无码久久99| 综合久久国产九一剧情麻豆| 国产成人久久精品一区二区三区 | 欧美国产精品久久高清|