html 怎么样在表格内插入表单
这个代码怎么插入表单,验证提交,位置怎么放?<body><divalign="center"></div><divalign="center"><tablewidth="...
这个代码怎么插入表单,验证提交,位置怎么放?
<body>
<div align="center"></div>
<div align="center">
<table width="1001" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="262" height="47"> </td>
<td colspan="9" valign="top"><div align="center" class="STYLE4">欢迎登陆</div></td>
<td width="249"> </td>
</tr>
<tr>
<td height="266" colspan="11" valign="top"><img src="images/028bb.jpg" alt="图片" width="1001" height="266"></td>
</tr>
<tr>
<td height="32"> </td>
<td width="62"> </td>
<td width="19"> </td>
<td width="49"> </td>
<td width="28"> </td>
<td width="42"> </td>
<td width="54"> </td>
<td width="42"> </td>
<td width="42"> </td>
<td width="152"> </td>
<td> </td>
</tr>
<tr>
<td height="22"> </td>
<td> </td>
<td colspan="2" valign="top"><div align="center"><span class="style2"> 用户名:</span></div></td>
<td> </td>
<td colspan="4" valign="top"><div align="center">
<input name="textarea" type="text" size="25" maxlength="10" style="height:20px; width:180px">
</div></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="29"> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="20"> </td>
<td> </td>
<td> </td>
<td valign="top"><div align="center" class="style2">密码:</div></td>
<td> </td>
<td colspan="4" valign="top"><input name="textarea" type="password" size="25" maxlength="10" style="height:20px; width:180px"></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="37"> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="21"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td valign="top">
<input type="submit" name="Submit" value="登陆"> </td>
<td> </td>
<form name="form1" method="post" action="">
<td valign="top"><input type="reset" name="Submit" value="重置"></td>
<td></td>
</form>
<td></td>
<td></td>
</tr>
<tr>
<td height="405"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</div>
</body>
</html> 展开
<body>
<div align="center"></div>
<div align="center">
<table width="1001" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="262" height="47"> </td>
<td colspan="9" valign="top"><div align="center" class="STYLE4">欢迎登陆</div></td>
<td width="249"> </td>
</tr>
<tr>
<td height="266" colspan="11" valign="top"><img src="images/028bb.jpg" alt="图片" width="1001" height="266"></td>
</tr>
<tr>
<td height="32"> </td>
<td width="62"> </td>
<td width="19"> </td>
<td width="49"> </td>
<td width="28"> </td>
<td width="42"> </td>
<td width="54"> </td>
<td width="42"> </td>
<td width="42"> </td>
<td width="152"> </td>
<td> </td>
</tr>
<tr>
<td height="22"> </td>
<td> </td>
<td colspan="2" valign="top"><div align="center"><span class="style2"> 用户名:</span></div></td>
<td> </td>
<td colspan="4" valign="top"><div align="center">
<input name="textarea" type="text" size="25" maxlength="10" style="height:20px; width:180px">
</div></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="29"> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="20"> </td>
<td> </td>
<td> </td>
<td valign="top"><div align="center" class="style2">密码:</div></td>
<td> </td>
<td colspan="4" valign="top"><input name="textarea" type="password" size="25" maxlength="10" style="height:20px; width:180px"></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="37"> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="21"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td valign="top">
<input type="submit" name="Submit" value="登陆"> </td>
<td> </td>
<form name="form1" method="post" action="">
<td valign="top"><input type="reset" name="Submit" value="重置"></td>
<td></td>
</form>
<td></td>
<td></td>
</tr>
<tr>
<td height="405"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</div>
</body>
</html> 展开
2个回答
展开全部
你 可以岑考一下这个代码------
<html>
<head>
<title>
表格+表单
</title>
</head>
<body>
<h1 align="center">用户注册</h1>
<hr size="3" width="800" color="red">
<table border="0" align="center" width="600" height="300">
<tr>
<td>用户名:
</td>
<td><input type="text" name="name" size="5" maxlength="6">只能输入6位
</td>
</tr>
<tr>
<td>密码:
</td>
<td><input type="password" name="pass">
</td>
</tr>
<tr>
<td>性别:
</td>
<td><input type="radio" name="sex"><img src="images/Male.gif" >男  <input type="radio" name="sex"><img src="images/Female.gif" >女
</td>
</tr>
<tr>
<td>来自于:
</td>
<td><select name="select">
<option name="aihao" value="pingpeng">安徽
<option name="aihao" value="pingpeng" selected>湖南
<option name="aihao" value="pingpeng">湖北
</select>
</td>
</tr>
<tr>
<td>爱好
</td>
<td><input type="checkbox" name="ai">篮球</br>
<input type="checkbox" name="ai">打乒乓</br>
<input type="checkbox" name="ai">游泳</br>
</td>
</tr>
<tr>
<td><input type="submit" value="提交注册信息">
</td>
<td><input type="reset" value="重新设置">
</td>
</tr>
</table>
</body>
</html>
<html>
<head>
<title>
表格+表单
</title>
</head>
<body>
<h1 align="center">用户注册</h1>
<hr size="3" width="800" color="red">
<table border="0" align="center" width="600" height="300">
<tr>
<td>用户名:
</td>
<td><input type="text" name="name" size="5" maxlength="6">只能输入6位
</td>
</tr>
<tr>
<td>密码:
</td>
<td><input type="password" name="pass">
</td>
</tr>
<tr>
<td>性别:
</td>
<td><input type="radio" name="sex"><img src="images/Male.gif" >男  <input type="radio" name="sex"><img src="images/Female.gif" >女
</td>
</tr>
<tr>
<td>来自于:
</td>
<td><select name="select">
<option name="aihao" value="pingpeng">安徽
<option name="aihao" value="pingpeng" selected>湖南
<option name="aihao" value="pingpeng">湖北
</select>
</td>
</tr>
<tr>
<td>爱好
</td>
<td><input type="checkbox" name="ai">篮球</br>
<input type="checkbox" name="ai">打乒乓</br>
<input type="checkbox" name="ai">游泳</br>
</td>
</tr>
<tr>
<td><input type="submit" value="提交注册信息">
</td>
<td><input type="reset" value="重新设置">
</td>
</tr>
</table>
</body>
</html>
展开全部
用Dreamweaver插入表格,具体方法是:单击插入,里面有个表格选项出来一个对话框,里面可以设置你要插入几行几列的表格,插入后可以在下面的属性里面设置各种值,如果要把表格定位,则先插入层就OK了,
如果你不会Dreamweaver,下面是一段表格代码:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<table width="500" height="250" border="1">
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>
如果你不会Dreamweaver,下面是一段表格代码:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<table width="500" height="250" border="1">
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询