當前位置:軟件學堂 > 資訊首頁 > 網(wǎng)絡編程 > DIV+CSS > 框架邊框?qū)傩詅rameborder

框架邊框?qū)傩詅rameborder

2012/11/22 13:40:07作者:佚名來源:網(wǎng)絡

移動端

【實例介紹】

框架邊框?qū)傩詅rameborder

在默認情況下,瀏覽器總是給每一個框架結構添加一條有明顯寬度的邊框。通過frameborder可以讓邊框顯示或隱藏。

【基本語法】

<frameset  frameborder="是否顯示">

【語法介紹】

frameborder的取值只能為0、1或yes、no。如果取值為0或no,那么邊框?qū)[藏,如果取值為l或yes,邊框?qū)@示。frameset中的設置將會對整個框架有效,frame中的設置則對當前框架有效。

【實例代碼】

<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>邊框?qū)傩?lt;/title> </head> <frameset rows="80,*" frameborder="yes" border="1" framespacing="1">   <frame src="top.html"name="topFrame" scrolling="No" noresize="noresize" id="topFrame" />   <frame src="dibu.html" name="mainFrame" id="mainFrame" /> </frameset> <noframes><body> </body></noframes> </html>

【代碼分析】

在代碼中,加粗部分的frameborder="yes"標記將邊框設置為顯示,在瀏覽器中預覽.效果如圖所示。如果將標記設置為“frameborder="no"”,那么邊框設置為隱藏。

邊框?qū)傩詅rameborder運行效果

 【素材及源碼下載】

請點擊:邊框?qū)傩詅rameborder 下載本實例相關素材及源碼