Posted on 2006-07-21 09:47
負人博客 閱讀(500)
評論(0) 編輯 收藏 所屬分類:
大雜燴
<%@ page contentType="text/html;charset=GBK"%>
<html>
?<head>
?<title>測試</title>
??<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
??<link href="contentstyle.css" rel="stylesheet" type="text/css">
?</head>
?<body>
??<table width="100%" border="0" cellspacing="0" cellpadding="0">
??? <tr>
????? <td class="title">測試</td>
????? <td align="right" valign="bottom"> </td>
??? </tr>
??</table>
??<hr >
??<form name="form1" id="form1" method="post" action="" >
???<table width="100%" border="0" cellspacing="4" cellpadding="0">
???? <tr>
????????<td>
??????????????<input type="text" name="" id="" >
?????????</td>?????
?????</tr>
???</table>
??</form>
?????
???<table name="hiddenTable"?width="100%" border="0" align="right"?cellpadding="0" cellspacing="3">
????? <tr>
??????? <td align="right">
??????? ?<input name="cmdAdd" onclick="doAdd()" type="button" class="button" value="添加" />
???????? ?<input name="cmdDelete" onclick="doDelete()" type="button" class="button" value="刪除" />
??????? ?<input name="cmdReport" onclick="doReport()" type="button" class="button" value="上報" />
??????? </td>
????? </tr>
????? </table>
??
??<form name="form2" id="form2" method="post" action="">
???<table width="100%" border="1" cellpadding="2" cellspacing="1" bordercolordark="#FFFFFF">
???? <tr>?
?????? <th>流水號</th>
?????? <th>姓名</th>
?????? <th>年齡</th>
???? </tr>
??????? <td>
?????????1
?????????</td>
??????? <td>
????????????測試?????????
??????? </td>
??????? <td>
????????????24?????????
??????? </td>
????? </tr>
???</table>
??</form>
?</body>
</html>
這個頁面存在一個問題:著重顯示的字段(名字為hiddenTable的table)不能在頁面上顯示
解決方式:
??? 當一個table在兩個table之間時,此table里面不能使用屬性align=“right”
去掉此屬性則table正常顯示。