表格布局

2017-06-08 16:05:00
admin
原创
545
<html> 
	<head> 
		<title>实训:用CSS布局表单
		</title> 
		<style type="text/css">
			<!--
			input, textarea{
				width: 120px;
				margin-bottom: 5px;
			}
			textarea{
				width: 250px;
				height: 150px;
			}
			.boxes{
				width: 1em;
			}
			#submitbutton{
				margin-left: 120px;
				margin-top: 5px;
				width: 90px;
			}
			br{
				clear: left;
			}
			--> 
		</style>
	</head> 
	<body bgcolor="#FFFFFF" text="#000000"> 
		<table border=0>
			<form>
				<tr>
					<td>
						<label for="user">姓&nbsp;&nbsp;&nbsp;&nbsp;名:
						</label>
					</td>
					<td>
						<input type="text" name="user" value="" />
						<br />
					</td>
				</tr>
				<tr>
					<td>
						<label for="emailaddress">电子邮箱:
						</label>
					</td>
					<td>
						<input type="text" name="emailaddress" value="" />
					</td>
				</tr>
				<tr>
					<td>
						<label for="comments">评&nbsp;&nbsp;&nbsp;&nbsp;论:
						</label>
					</td>
					<td>
						<textarea name="comments">
						</textarea>
					</td>
				</tr>
				<tr>
					<td>
						<label for="terms">是否同意条款?
						</label>
					</td>
					<td>
						<input type="checkbox" name="terms" class="boxes" />
					</td>
				</tr>
				<tr>
					<td colspan=2>
						<input type="submit" name="submition" id="submitbutton" value="提交" />
					</td>
				</tr>
			</form>
			</body> 
		</html>
  • QQ讨论群
  • 关注微信
    • 欢迎咨询
    • 欢迎加入QQ群 16506021
  • 公众号:源宝网络