網頁的本質就是超級文本標記語言,通過結合使用其他的Web技術(如:腳本語言、公共網關接口、組件等),可以創造出功能強大的網頁。因而,超級文本標記語言是萬維網(Web)編程的基礎,也就是說萬維網是建立在超文本基礎之上的。超級文本標記語言之所以稱為超文本標記語言,是因為文本中包含了所謂“超級鏈接”點。 【實例介紹】 框架邊框與頁面內容的垂直邊距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 下載本實例相關素材及源碼
網站建設是一個廣義的術語,涵蓋了許多不同的技能和學科中所使用的生產和維護的網站。 |