網頁的本質就是超級文本標記語言,通過結合使用其他的Web技術(如:腳本語言、公共網關接口、組件等),可以創造出功能強大的網頁。因而,超級文本標記語言是萬維網(Web)編程的基礎,也就是說萬維網是建立在超文本基礎之上的。超級文本標記語言之所以稱為超文本標記語言,是因為文本中包含了所謂“超級鏈接”點。 【實例介紹】 框架邊框與頁面內容的水平邊距marginwidth 框架頁面與HTML中的表格一樣,也可以具有邊框與頁面內容的水平邊距。 【基本語法】 <frame src="頁面源文件地址" marginwidth="水平邊距"> 【語法介紹】 水平邊距用于設置頁面的左右邊緣與框架邊框的距離。 【實例代碼】
<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="134,*" cols="*" frameborder="yes"
border="1" framespacing="1">
<frame src="top.html" name="topFrame" noresize
marginwidth="100"/>
<frameset rows="*" cols="355,*" framespacing="1"
frameborder="yes" border="1">
<frame src="left.html" name="leftFrame"
noresize marginwidth="30"/>
<frame src="right.html" name="rightFrame"
noresize marginwidth="50"/>
</frameset>
</frameset>
<noframes><body>
</body></noframes>
</html>
【代碼分析】 在代碼中,加粗部分的marginwidth="100"、marginwidth="30"和marginwidth="50"標記用于設置框架邊框與頁面內容的水平邊距為100像素、30像素、50像素,在瀏覽器中預覽,如果如圖所示。  【素材及源碼下載】請點擊:框架邊框與頁面內容的水平邊距marginwidth 下載本實例相關素材及源碼
網站建設是一個廣義的術語,涵蓋了許多不同的技能和學科中所使用的生產和維護的網站。 |