可輸入狀態:
<input>
<textarea></textarea>//默認狀態下都可以輸入數據
鎖定狀態:
<input readonly="readonly">
<textarea readonly="readonly"></textarea>//鎖定狀態都只需要加readonly屬性
type=“text”輸入框
type=“password”密碼點顯示,
type=“radio”單選框 type=“checkbox”複選框:
(單選或複選,用<lable>標籤包括之後,則選項字體與圈圈,都能點擊)。
type=“email”,郵箱輸入框就可以使用@符號。
type=“file”從電腦裏選擇文件
type=“number”會出現上下箭頭選擇數字。
type=“submit”提交
type="reset"取消
type=“button”按鈕樣式
//效果展示