表单、框架集、图片修复
2019-12-19 本文已影响0人
Agony_锐
表单:
placeholder:提示文字
value:默认值
method可选值:post、get
设置请求方式:method="post" 默认get
重点:
get与post区别?
post:把表单项里的所有信息打包,把包发送(安全)
上传文件只能用post
需要上传文件时要加属性:enctype="multipart/form-data"
get:把信息拼接到url后面,这个长度最多100k(查询字符串的方式)
method默认值get
当type值为hidden:表单隐藏域(不想让用户看见)
textarea:多行文本域(可写多行,并且有滚动条)
尽量不要用提示出来的值,用样式值
multiple="multiple":默认展开下拉
按钮格式:
1、

<input type="submit" value="注册">
<input type="reset"><!--重置--> —— 恢复默认值
<input type="button" value="按钮"><br><br> —— 结合JS使用 单纯标签
2、推荐使用

<button type="submit">提交</button>
<button type="reset">重置</button>
<button type="button">按钮</button> —— 结合JS使用 单纯标签
组:
1、fieldset:长表单分组
2、legend:组名


2、


框架集:
<frameset></frameset>与<body></body>不能出现在同一页面
图片修复:
