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熱點博客

          好友博客

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 南阳市| 积石山| 富锦市| 驻马店市| 苍梧县| 巴林右旗| 灵山县| 会泽县| 泗洪县| 凤翔县| 育儿| 玛曲县| 建昌县| 普安县| 台山市| 乐平市| 新巴尔虎左旗| 吴堡县| 南雄市| 太湖县| 灵丘县| 普定县| 寿宁县| 宜君县| 东辽县| 灵武市| 枞阳县| 高州市| 西盟| 临安市| 壤塘县| 枣强县| 民县| 祁阳县| 张掖市| 通道| 视频| 高邑县| 宁河县| 迁西县| 孟村|