表单

文件框:

  • type="file"
    表示这是一个文件框。
  • name="file"
    将来用于服务器取值使用。
  • id="file"
    将来用于js获取值使用。

示例代码:

<html>
	
	<head>
		<title>www.weiyuxuan.com</title>	
	
	</head>
	
	<body>
		
		<h1>HTML表单_文件框</h1>
		
		<form action="/xxx/xxx.jsp" method="post">
			
			<br/>&nbsp;&nbsp;像:  <input id="pic" type="file" name="pic"><br/>
																			
		</form>
		
	</body>
	
</html>

结果图:
JavaWeb_HTML(15)_HTML 表单_文件框
如有错误,欢迎指正!

相关文章:

  • 2021-05-15
  • 2021-09-06
  • 2022-01-14
  • 2021-10-29
  • 2021-04-26
  • 2021-07-14
  • 2022-12-23
  • 2021-07-22
猜你喜欢
  • 2021-04-10
  • 2021-11-28
  • 2022-01-17
  • 2021-09-21
  • 2021-11-23
  • 2021-07-13
  • 2021-12-28
相关资源
相似解决方案