2017年10月24日 第三章 表单

it2022-05-05  154

1.语法

  <form method="get/post" action="数据向哪提交的地址"

    //表单内容

  </form>

2.input 标签常用属性

  <input name="标签名"  type="标签类型" value="标签默认值"/>

size:输入文本框的字符的长度

maxlength:文本框的宽度

checked:单选框和复选框的默认选中

selected

3.常用标签

text: //文本框

password //密码框

radio //单选按钮

checkbox //复选框

button //按钮

submit //提交按钮

reset //重置按钮

url //只能输入网址

email //只能输入邮箱

number //只能输入数字

file //文件域

range //滑块

search //搜索框

 

转载于:https://www.cnblogs.com/guohan666/p/7721956.html


最新回复(0)