1.框架處理結構html
<html>瀏覽器
<head>服務器
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />app
<title>test</title>框架
</head>post
<frameset rows="90,*">ui
<frame src="",name="" />編碼
<frame src="",name="" />url
</frameset>spa
</html>
2.經常使用屬性:
1)rows:用像素或者百分比分割上下窗口,*表示剩餘部分
2)cols:用像素或者百分比分割左右窗口,*表示剩餘部分
3)frameborder:指定是否顯示邊框,0表示不顯示,1表示顯示
4)border:指定框架的粗細
5)noresize:表示<frame>指定框架不可以調節
3.<noframes></noframes>:在瀏覽器不支持框架時使用
<noframes>
<body>
</body>
</noframes>
4.表單<form></form>
<form action="" method="get/post" enctype=""></form>
1)action:URL,表示表單提交時,向何處發送表單數據
2)method:get/post,規定如何發送表單數據
3)name:規定表單名稱
4)enctype:MIME_type,規定表單數據在發送到服務器以前應該如何編碼,默認:application/x-www-form-urlencoded,在上傳文件時:multipart/form-data
5.經常使用表單屬性:
1)<input />
<input type="text" name="user" <!--value="默認值" maxlength="10"--這部分無關緊要> /> text框
<input type="password" name="password"> 密碼框
其餘type屬性:
checkbox:複選框
radio:單選框
submit:提交按鈕
reset:重置按鈕
file:上傳框
hidden:隱藏域,用來存儲固定值,不讓用戶看到
button:普通按鈕
2)<textarea name="name"></textarea> :多行文本域
3)<select>候選內容</select>:下拉框
<select name="name">
<option value="1">內容</option>
<option value="2" selected="selected">內容</option>
<option value="3">內容</option>
</select>