1.表格:
<table border = "1px"? width = "500xp" borderColor = "green" style = "border-collapse:collapse">
<tr>行
<td>單個單元格
<th>表頭單元格
</table>
width? ? ? ? ? ? ? ? ?表格邊框
borderColor? ? ? ? 邊框顏色
style? ? ? ? ? ? ? ? ? ? 邊框風格
rowspan = "5"? ? 行合并
colspan = "3"? ? ?列合并
2.表單
<form action = "提交的地址" post = "post/get">
post :提交的方式? ? ? ??
<input type = "text" id = "jugg" name = "hero" class = "player" placeHolder = "請輸入內容" />
其中嘉涌,type = "text";? ? ????????????可視化文本
????????????type = "password";? ? ?密碼
? ? ? ? ? ? type = "file";? ?????????????要上傳的文件
? ? ? ? ? ? type = "dote";? ? ?????????日期? ?
????????????type = "redio";? ? ? ? ? ? 單選? ? ,使用時name要一致仑最,默認的選擇項是checked
????????? ? type = "checkbox";? ? ? 多選? ? ? 帆喇,使用時name要一致警医,默認的選項是checked坯钦,name值后一般加中括號
????????????type = "hidden";? ? ? ? ? ? 隱藏區(qū)域,一般用于文件上傳時吟温,告訴服務器文件的大小
????????????type = "button";? ? ? ? ? ? 按鈕
? ? ? ? ? ? type = "submit"? ? ? ? ? ? 提交
? ? ? ? ? ? type = "reset"? ? ? ? ? ? ? ? 數據重置
<select >
? ? <option selected> 下拉菜單<option>
</select>
<textarea rows = "行寬" cols = "列高">
</textarea>
單選框和文字一起被選中示例:
<input type = "radio" name = "sex" id = "nan" value = "1" checked />
? ? <lable for = "nan">男</lable>
<input type = "radio" name = "sex" id = "nv" value = "2" / >
<lable for = "nv">女</lable>