gpt4 book ai didi

html - IE 中的奇怪空间 - 有什么建议吗?

转载 作者:可可西里 更新时间:2023-11-01 12:53:59 26 4
gpt4 key购买 nike

下表是 body 标签中的唯一元素——这在 Firefox 3 中显示良好,正如我所期望的那样,但在 IE7 中看起来不太好。嵌套表和上面的行之间有一个奇怪的空间。你能建议一些方法来删除那个奇怪的空间吗? - 谢谢

<table>
<tr>
<td colspan="14">
<div>
<table id="value_table" width="100%" border="0" cellspacing="0" cellpadding="2" style="border-collapse: collapse; display: block">
<tr>
<td height="20" align="center" valign="Middle" class="Header">
<div align="left"><b>  Search Relationships</b></div>
</td>
</tr>
<tr>
<td>This is working</td>
</tr>
<tr valign="top">
<td>second row</td>
<td nowrap="nowrap" class="GrayRow" valign="top" border="1" height="40" align="center" style="border: none">
just above the table
<table border="1" cellpadding="0" cellspacing="0" align="left">

<tr valign="top">
<td>new row inside table</td>
<td class="GrayRow" nowrap="nowrap"> <b>Select:</b>   <select id="j_id19:browseType" name="j_id19:browseType" size="1" class="TextBlackNormal" onchange="showDynamicBox(this);"> <option value="NAME">User Name</option> <option value="ID">User Id</option> <option value="IBD/Office/IP">IBD/Office /IP</option> <option value="APA#">APA#</option></select>    </td>
<td>
<div id="dynamicBox1" style="display: block"><input id="j_id19:j_id23" name="j_id19:j_id23" type="text" value="" size="32" class="TextBlackNormal" /></div>
</td>
   
<td>
<div id="dynamicBox2" style="display: none"><input id="j_id19:j_id25" name="j_id19:j_id25" type="text" value="" size="32" class="TextBlackNormal" /></div>
</td>
   
<td>
<div id="dynamicBox3" style="display: none">
IBD   <input id="j_id19:ibdval1" name="j_id19:ibdval1" type="text" value="" maxlength="3" size="3" onkeyup="goToNextFocus(this);" class="TextBlackNormal" />  
OFF   <input id="j_id19:ibdval2" name="j_id19:ibdval2" type="text" value="" maxlength="3" size="3" onkeyup="goToNextFocus(this);" class="TextBlackNormal" />  
IP    <input id="j_id19:ibdval3" name="j_id19:ibdval3" type="text" value="" maxlength="3" size="3" onkeyup="goToNextFocus(this);" class="TextBlackNormal" />
</div>
</td>
   
<td>
<div id="dynamicBox4" style="display: none">
Average Price Account#    <input id="j_id19:apaval1" name="j_id19:apaval1" type="text" value="" maxlength="3" size="3" onkeyup="goToNextFocus(this);" class="TextBlackNormal" />  <input id="j_id19:apaval2" name="j_id19:apaval2" type="text" value="" maxlength="3" size="3" onkeyup="goToNextFocus(this);" class="TextBlackNormal" />  <input id="j_id19:apaval3" name="j_id19:apaval3" type="text" value="" maxlength="3" size="3" onkeyup="goToNextFocus(this);" class="TextBlackNormal" />
</div>
</td>
      
<td class="GrayRow" nowrap="nowrap">
<div id="msg_multiple_inputs" style="display:none">
<font color="#990000" size="1">Enter multiple separated by
commas   </font>
</div>
                                 
</td>
<td><input id="j_id19:display" name="j_id19:display" type="submit" value="Display" class="TextBlackNormal" /></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</td>
</tr>

</table>

最佳答案

这是 IE 的众多布局错误之一,很难修复。我可以提出一些建议...

  • 将包含单元格的 padding-top 设置为 0em
  • 设置嵌套表格的margin-top为0em

关于html - IE 中的奇怪空间 - 有什么建议吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2772429/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com