ASP 用了rowspan后,怎么居中?
来源:百度知道 编辑:UC知道 时间:2024/05/26 12:46:53
<body>
<form >
<table align="center" border="1">
<tr><TD align="right" width=120 height=15>留言主题</TD><td><input type="text" name="zhuti" height=15 width=120></td></tr>
<tr><TD align="right" width=120 height=60>留言内容</TD><td><input type="text" name="neirong" height=60 width=120></td></tr>
<tr><td align="center" width=120 height=15 colspan="2"><input type="submit" name="submit" value="提交" height=15 width=120></td></tr>
</table>
</form>
</body>
align="center" 怎么没让 提交 按钮 居中?该怎么做?
<form >
<table align="center" border="1">
<tr><TD align="right" width=120 height=15>留言主题</TD><td><input type="text" name="zhuti" height=15 width=120></td></tr>
<tr><TD align="right" width=120 height=60>留言内容</TD><td><input type="text" name="neirong" height=60 width=120></td></tr>
<tr><td align="center" width=120 height=15 colspan="2"><input type="submit" name="submit" value="提交" height=15 width=120></td></tr>
</table>
</form>
</body>
align="center" 怎么没让 提交 按钮 居中?该怎么做?
将<td align="center" width=120 height=15 colspan="2">改成
<td align="center" height=15 colspan="2">
你想啊这列的宽度已经被定为120了,它的居中当然只能那个效果了
<form >
<table border="1" align="center">
<tr><TD align="right" width=120 height=15>留言主题</TD><td><input type="text" name="zhuti" height=15 width=120></td></tr>
<tr><TD align="right" width=120 height=60>留言内容</TD><td><input type="text" name="neirong" height=60 width=120></td></tr>
<tr><td align="center" height=15 colspan="2"><input type="submit" name="submit" value="提交" height=15 width=120></td>
</tr>
</table>
</form>
希望对你有帮助