因為我連html都沒學過,只是平時見到的時候,記得些許,知道大概的格式。
這里有一個內容比較多的html頁面,作為記錄,用的時候參考參考。
<html>
<head>
<title>
index
</title>
<head>
<body>
<form name="form1" id="form1" method="post" action="">
同步進行:
<input type="text" name="textfiled" id="txt"
onkeyup="javascript:document.getElementById('label_1').innerText = this.value"/>
這是同步的標簽:<label id = "label_1"></label>
<br/>
<br/>
只允許輸入數字(QQ的驗證):
<input type="text" id="txtQQ" name="textfield" onkeypress="return aa()"/>
<br/>
<br/>
<label>*****************************************************************</label>
<br/>
<br/>
<table>
<tr>
<td>
<input type="checkbox" id="checkbox1" value = "大類" name="checkbox1"/>大類
<br/>
<input type="checkbox" id="checkbox1" value = "中類" name="checkbox1"/>中類
<br/>
<input type="checkbox" id="checkbox1" value = "小類" name="checkbox1"/>小類
<br/>
</td>
<td>
<input type="button" id="check_1" name="check_1" value="提交"onclick="mycheck_1()"/>
</td>
<td>
<textarea rows="9" cols="25" id="textarea_1" name="textarea_1"></textarea>
<br/>
</td>
</tr>
</table>
<label>*****************************************************************</label>
<br/>
<br/>
<label><input type="radio" id="radio1" name="radiogroup" value="男"/>男</label>
<label><input type="radio" id="radio2" name="radiogroup" value="女"/>女</label>
<input type="button" id="radio_1" name="radio_1" value="提交"onclick="myRadio_1()"/>
<br/>
<br/>
<label><input type="radio" id="radio1" name="radiogroup_1" value="東"/>東</label>
<label><input type="radio" id="radio2" name="radiogroup_1" value="西"/>西</label>
<label><input type="radio" id="radio1" name="radiogroup_1" value="南"/>南</label>
<label><input type="radio" id="radio2" name="radiogroup_1" value="北"/>北<label>
<label><input type="radio" id="radio1" name="radiogroup_1" value="中"/>中<label>
<input type="button" id="radio_2" name="radio_2" value="提交"onclick="myRadio_2()"/>
<input type="text" name="textfiled" id="txtRadio" value=""/>
<br/>
<br/>
<label>*****************************************************************</label>
<br/>
<br/>
<!--select 單選框 Begin-->
<label>select 單選框</label>
<br/>
<select name="select" size="1"id="danXuan" onchange="changeText()">
<option value="">--請選擇--</option>
<option value="我的秘書">我的秘書</option>
<option value="我的工作臺">我的工作臺</option>
<option value="項目管理">項目管理</option>
<option value="計劃管理">計劃管理</option>
<option value="企業管理">企業管理</option>
</select>
<input type="text" name="textfiled" id="select_danxuan" value=""/>
<!--select 單選框 Begin-->
<br/>
<br/>
<label>*****************************************************************</label>
<br/>
<label>select 多選框</label>
<table>
<tr>
<td>
<!--select 多選框b1 Begin-->
<select size="2" multiple id="b1" style="height:151px; width:180px;">
<option value="我的秘書">我的秘書</option>
<option value="我的工作臺">我的工作臺</option>
<option value="項目管理">項目管理</option>
<option value="計劃管理"> 計劃管理</option>
<option value="企業管理">企業管理</option>
</select>
</td>
<!--select 多選框b1 end-->
<td>
<!--select 多選框 button Begin-->
<table>
<tr align="center"><input type="button" value = " > " onclick="myRight()"/></tr>
<tr align="center"><input type="button" value = " >> " onclick="myRightAll()"/></tr>
<tr align="center"><input type="button" value = " < " onclick="myleft()"/></tr>
<tr align="center"><input type="button" value = " << " onclick="myleftAll()"/></tr>
<tr align="center"><input type="button" value = " ↑ " onclick="myup()"/></tr>
<tr align="center"><input type="button" value = " ↓ " onclick="mydown()"/></tr>
</table>
<!--select 多選框 button end-->
</td>
<td>
<!--另一個select 多選框b2 Begin-->
<select size="2" multiple id="b2" style="height:151px; width:180px;">
</select>
<!--另一個select 多選框b2 end-->
</td>
<td>
<input type="button" id="select_duoxuan" name="select_duoxuan" value="確定" onclick="myselect_duoxuan()">
</td>
<td>
<textarea rows="9" cols="25" id="textarea" name="textarea"></textarea>
</td>
<tr>
</table>
<br/>
</form>
</body>
</html>
這里有一個內容比較多的html頁面,作為記錄,用的時候參考參考。
<html>
































































































































