【HTML】Form表单中Input的使用

admin 2022年1月10日03:31:15评论13 views字数 1065阅读3分33秒阅读模式

form表单截图样式

image-20210707144322530

form表单中input

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"> <!--字符集 -->
<title>form表单和input</title>
</head>
<body>
<!--表单POST传参 -->
<!--value:默认值 maxlength:最大长度限制 -->
<form method="post" action="" enctype="initial-scale">
账号:<input type="text" name="username" size="30" maxlength="10" value="admin" readonly /><br/>
密码:<input type="password" name="password" size="30" maxlength="10" /><br/>
<!--hidden隐藏域 -->
<input type="hidden" name="token" value="waffawafaw" />
<input type="submit" value="提交"/>
<input type="reset" value="重置">
</form>

<!--文件上传模式 -->
<form method="post" action="" enctype="multipart/form-data">
<input type="file" name="file"/>
<input type="submit" value="提交"/>
</form>

<!--button文件上传模式 -->
<form method="post" action="" enctype="multipart/form-data">
<input type="file" name="file"/>
<input type="button" value="提交" />
</form>

<!--搜索模式 -->
<form method="get" action="" enctype="multipart/form-data">
<input type="text" name="seach"/>
<input type="submit" value="搜索" />
</form>


</body>
</html>

我的个人博客

孤桜懶契:http://gylq.github.io

FROM:gylq.gitee Author:孤桜懶契

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2022年1月10日03:31:15
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   【HTML】Form表单中Input的使用https://cn-sec.com/archives/729954.html

发表评论

匿名网友 填写信息