posts - 262,  comments - 221,  trackbacks - 0
          一、HTML的<frame>:
          <frameset cols="25%,75%">
             
          <frame src="frame_a.htm">
             
          <frame src="frame_b.htm">
          </frameset>

          二、HTML的<noframes>:
          <html>
          <frameset cols="25%,50%,25%">

            
          <frame src="frame_a.htm">
            
          <frame src="frame_b.htm">
            
          <frame src="frame_c.htm">

            
          <noframes>
            
          <body>
             Your browser does not handle frames!   
            
          </body>
            
          </noframes>

          </frameset>
          </html>

          You cannot use the <body></body> tags together with the <frameset></frameset> tags! However, if you add a <noframes> tag containing some text for browsers that do not support frames, you will have to enclose the text in <body></body> tags!

          備注:

          一般情況下不能將<body></body>標記和<frameset></frameset>標記混合使用,但是如果你要對不支持框架的瀏覽器提供一些信息,那么你需要將這些信息包裝在<body></body>標記中,置于<noframes></noframes>標記內

          三、HTML的<iframe>:

          使用<iframe>標記可以將一個網頁“嵌入”到另一個網頁中,注意這種嵌入和“include”不同,下面我們通過一個例子來了解iframe的效果
          <html>
          <body>

          <iframe src="default.asp"></iframe>

          <p>Some older browsers don't support iframes.</p>
          <p>If they don't, the iframe will not be visible.</p>

          </body>
          </html>

          備注:

          注意<iframe></iframe>標記是置于<body></body>內,這一點和<noframes></noframes>剛好相反

          效果如下:

          可以看到一個HTML頁面被“嵌入”了當前HTML頁面。

          四、框架與錨標記:
          <html>

          <frameset cols="180,*">

          <frame src="content.htm">
          <frame src="link.htm" name="showframe">

          </frameset>

          </html>

          在框架中使用錨標記和在普通網頁重使用錨標記中沒有兩樣,看看content.htm的內容:
          <html>
          <body>

          <href ="link.htm" target ="showframe">Link without Anchor</a><br>
          <href ="link.htm#C10" target ="showframe">Link with Anchor</a>

          </body>
          </html>

          可以看到content.htm中第二個鏈接使用了錨標記指向link.htm的名為C10的錨處。


          -------------------------------------------------------------
          生活就像打牌,不是要抓一手好牌,而是要盡力打好一手爛牌。
          posted on 2008-06-05 21:44 Paul Lin 閱讀(532) 評論(0)  編輯  收藏 所屬分類: Web基礎
          <2008年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          常用鏈接

          留言簿(21)

          隨筆分類

          隨筆檔案

          BlogJava熱點博客

          好友博客

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 兖州市| 尼玛县| 偃师市| 西安市| 罗田县| 益阳市| 广平县| 凤冈县| 绥中县| 泰顺县| 澄江县| 万全县| 长岭县| 阳山县| 南川市| 平武县| 盐亭县| 祁门县| 普兰店市| 桐乡市| 绥中县| 子洲县| 泸定县| 秭归县| 海门市| 皋兰县| 肇庆市| 财经| 绥宁县| 呼玛县| 凤山县| 乾安县| 廉江市| 保定市| 敦煌市| 喀喇| 盱眙县| 禹城市| 瓮安县| 贵阳市| 新龙县|