當前位置:軟件學堂 > 資訊首頁 > 網絡編程 > DIV+CSS > 框架邊框與頁面內容的垂直邊距marginheight

框架邊框與頁面內容的垂直邊距marginheight

2012/11/22 14:50:34作者:佚名來源:網絡

移動端

【實例介紹】

框架邊框與頁面內容的垂直邊距marginheight

通過marginheight標記可以設置框架邊框與頁面內容的垂直邊距。

【基本語法】

<frame  src="頁面源文件地址"  marginheight="垂直邊距">

【語法介紹】

垂直邊距用來設置頁面的上下邊緣與框架邊框的距離。

【實例代碼】

<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>框架邊框與頁面內容的垂直邊距</title> </head> <frameset rows="161,*" cols="*" frameborder="yes" border="1" framespacing="1">   <frame src="top.html" name="topFrame" scrolling="no" noresize marginwidth="100" marginheight="80"/>   <frameset rows="*" cols="355,*" framespacing="1" frameborder="yes" border="1">     <frame src="left.html" name="leftFrame" noresize marginwidth="30" marginheight="50"/>     <frame src="right.html" name="rightFrame" noresize marginwidth="50" marginheight="20"/>   </frameset> </frameset> <noframes><body> </body></noframes> </html>

【代碼分析】

在代碼中,加粗部分的marginheight="80"、marginheight="50"和marginheight="20"標記將框架邊框與頁面內容的垂直邊距分別設置為80像素、50像素、20像素,在瀏覽器中預覽,效果如圖所示。

框架邊框與頁面內容的垂直邊距marginheight運行效果

 【素材及源碼下載】

請點擊:框架邊框與頁面內容的垂直邊距marginheight 下載本實例相關素材及源碼

 

欧美一级一极性活片免费观看,欧美一级艳片欧美精品,欧美一级性爱大片,欧美一级囗交视频 视频,欧美一级特黄录像视频