<!doctype html>
<html>
<head>
<style>
#table1{
}
#table1{
background-color:#B0C4DE;
}
.td1{
border-top:1px solid;
border-right:1px solid;
text-align:right;
}
.td2{
width:500px;
border-top:1px solid;
}
</style>
<script>
</script>
<meta charset="UTF-8">
</head>
<body>
<section id="test">
<form id="form1" action="">
<table id="table1" cellspacing="0"><!--将单元格之间的间隔设为0px-->
<tr>
<th class="th1"><h1>信息调查表</h1></th>
</tr>
<tr>
<td class="td1">姓名:</td>
<td class="td2"><input type="text"></td>
</tr>
<tr>
<td class="td1">性别:</td>
<td class="td2">男<input type="radio" name="sex" value="male" checked="checked"> 女<input type="radio" name="sex" value="female"></td>
</tr>
<tr>
<td class="td1">爱好:</td>
<td class="td2"><input type="checkbox" name="hobby" value="movie">看电影<input type="checkbox" name="hobby" value="mousic">听音乐<input type="checkbox" name="hobby" value="ins">演奏乐器<input type="checkbox" name="hobby" value="basketball">打篮球<input type="checkbox" name="hobby" value="book">看书<input type="checkbox" name="hobby" value="net">上网</td>
</tr>
<tr>
<td class="td1">地址:</td>
<td class="td2"><input type="text"></td>
</tr>
<tr>
<td class="td1">电话:</td>
<td class="td2"><input type="text"></td>
</tr>
<tr>
<td class="td1">个人评价:</td>
<td class="td2"><textarea rows="8" cols="30"></textarea></td>
</tr>
<tr>
<td class="td1"></td>
<td class="td2"><input type="submit">  <input type="reset"></td>
</tr>
</table>
</form>
</section>
</body>
</html>
使用table表格设计调查表
最新推荐文章于 2023-06-04 18:17:49 发布