码迷,mamicode.com
首页 > Web开发 > 详细

html-基本form元素---ShinePans

时间:2017-07-14 21:14:51      阅读:216      评论:0      收藏:0      [点我收藏+]

标签:列表   等等   上传文件   size   name   占用   .net   tle   武汉   

技术分享


<html>
<meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
<head><title>表单</title>
	<body>
		<form action="logOk.html" method="get">
			你最喜欢哪些城市:
			<input type="checkbox" name="cities" value="wuhan">武汉
			<input type="checkbox" name="cities" value="shanghai">上海
			<input type="checkbox" name="cities" value="beijing">北京
			<input type="checkbox" name="cities" value="guangzhou">广州
			<br/>
			你的性别是:      
			<input type="radio" name="sex" value="male">男
			<input type="radio" name="sex" value="female">女
			<br/>
			下拉列表<br/>
			请选择你的出生地:
			<select name="address" size=3 multiple>
				<option value="hubei">湖北<!--选项--></option>
				<option value="shanghai">上海</option>
				<option value="beijing">北京</option>
			</select>
			<br/>
			文本域(用来发表文章发帖子等等)<!--cols:占用的列数,rows占用的行数-->
			</br>
			介绍自己:
			<br/>
			<textarea name="mytextarea" cols="60" rows="10">   
			</textarea><br/>
			<br/>
			上传文件:
			<input type="file" name="myfile">
			<br/>

			<br/>
			<br/>
			隐藏域的使用
			<input type="hidden" name="data" value="ok">
			<input type="submit" value="測试"/>
			<br/>
			button的測试:
			<br/>
			<input type="image" src="image.jpg">
		</form>
	</body>
</html>


html-基本form元素---ShinePans

标签:列表   等等   上传文件   size   name   占用   .net   tle   武汉   

原文地址:http://www.cnblogs.com/wzzkaifa/p/7172073.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!