html中文件上传和按钮的使用方法

2024-10-14 13:45:54

1、input类型设置为酆璁冻嘌file表示文件上传。同是form标签设置enctype="multipart/form-data"。

html中文件上传和按钮的使用方法

2、input设置成hidden,表示该区域隐藏。

html中文件上传和按钮的使用方法

3、input类型设置button为普通按钮。

html中文件上传和按钮的使用方法

4、input类型设置submit为提交按钮。

html中文件上传和按钮的使用方法

5、input类型设置reset为重置按钮。

html中文件上传和按钮的使用方法

6、button标签同样也可以实现提交重置等功能。

html中文件上传和按钮的使用方法
猜你喜欢