为什么我这一行的高度控制不了???

 1<tr>
 2<td align="center" bgcolor="#717171" height="20" width="70">
 3<form action="reader.php" height="20" method="POST" name="ddfirst">
 4<input name="firstpage" type="hidden" value="1"/></form>
 5<a href="javascript:dosubfirst()">首 页</a>
 6</td>
 7<td bgcolor="#717171" width="340">
 8<form action="reader.php" method="post" name="dd16">
 9<font color="#ffffff" size="4">文章搜索  </font>
10<input maxlength="30" name="searchTarget" size="10" type="text"/>
11<select name="searchtype" size="1" style="background-color:#717171;color:#ffffff">
12<option selected="" value="title">按题目查询</option>
13<option value="serial">按期号查询</option></select>
14<input name="gosearch" type="hidden" value="1"/></form></td>   
15  <td align="left" bgcolor="#717171" height="20" width="360">
16<a href="javascript:dosub16()">开始搜索</a></td></tr>

我的本意是将这些表单在一行中显示,但是显示效果总是三段高低不一,而且整个
行的高度也大大超过了我设定的高度,为什么? 请教!!
---------------------------------------------------------------

这是对你的代码的修改,OK了.

 1<tr>
 2<td align="center" bgcolor="#717171" height="20" width="70">
 3<form action="reader.php" height="20" method="POST" name="ddfirst">
 4<input name="firstpage" type="hidden" value="1"/></form>
 5<div align="left"><a href="javascript:dosubfirst()">首 页</a> </div>
 6</td>
 7<td bgcolor="#717171" width="340">
 8<form action="reader.php" method="post" name="dd16">
 9<div align="left">
10<p>
11<input maxlength="30" name="searchTarget" size="10" type="text"/>
12<select name="searchtype" size="1" style="background-color:#717171;color:#ffffff">
13<option selected="" value="title">按题目查询</option>
14<option value="serial">按期号查询</option>
15</select>
16<input name="gosearch" type="hidden" value="1"/>
17</p>
18<p>  </p>
19</div>
20</form></td>
21<td align="left" bgcolor="#717171" height="20" width="360">
22<a href="javascript:dosub16()">开始搜索</a></td></tr>
1<div align="left"></div>

---------------------------------------------------------------

把form的位置移移

 1<tr><form action="reader.php" height="20" method="POST" name="ddfirst">
 2<td align="center" bgcolor="#717171" height="20" width="70">
 3<input name="firstpage" type="hidden" value="1"/>
 4<a href="javascript:dosubfirst()">首 页</a>
 5</td></form><form action="reader.php" method="post" name="dd16">
 6<td bgcolor="#717171" width="340">
 7<font color="#ffffff" size="4">文章搜索  </font>
 8<input maxlength="30" name="searchTarget" size="10" type="text"/>
 9<select name="searchtype" size="1" style="background-color:#717171;color:#ffffff">
10<option selected="" value="title">按题目查询</option>
11<option value="serial">按期号查询</option></select>
12<input name="gosearch" type="hidden" value="1"/></td></form>   
13  <td align="left" bgcolor="#717171" height="20" width="360">
14<a href="javascript:dosub16()">开始搜索</a></td></tr>
Published At
Categories with Web编程
comments powered by Disqus