2019.10.22 笔记《按钮》

一、代码

1.<form> </form>:建立表单元素

2.value :值

3.name:名称

4.get:显示提交

5.post:隐式提交

6.input type="text":文本框

7.input type="password":密码框

8.input type="hidden":隐藏域

9.<textarea> </textarea>:文本域;rows:可见区域的行数;cols:可见区域的横向字符数

10.placeholder:默认在文本框中显示的文字,输入文字后消失

11.input type="checkbox":复选框

12.<select> </select>:下拉列表; <option></option>: 下拉项

13.input type="radio":单选按钮

14.input type="file":文件选择

15.input type="button":普通按钮

16.input type="submit":提交按钮

17.input type="reset":重置按钮

18.input type="image" src="":图片按钮

19.readonly ="readonly" :只读,可以提交value值

20.disabled ="disabled":不可用,不可以提交value值

21.cheched ="checked":在radio checkbox中设置默认选中

22.selected = "selected": 在下拉列表中,设置默认选中

二、实例

猜你喜欢

转载自www.cnblogs.com/l1314/p/11720770.html
今日推荐