制作页面时,页面左右布局时,而右侧宽度是自适应宽度时,在右侧DIV里插入宽度100%的表格时,在IE6下就是超出宽度,而其它IE7,8,FF都正常显示,这种情况用height:1%;方法就能解决了,简单实用。


演示如:只要把height:1%;加到你的TAB外层DIV的样试里就行了

.content{height:1%;}


<div class="content">

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>

 

 

制作页面时,页面左右布局时,而右侧宽度是自适应宽度时,在右侧DIV里插入宽度100%的表格时,在IE6下就是超出宽度,而其它IE7,8,FF都正常显示,这种情况用height:1%;方法就能解决了,简单实用。


演示如:只要把height:1%;加到你的TAB外层DIV的样试里就行了。

.content{height:1%;}


<div class="content">

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>

相关文章:

  • 2022-01-13
  • 2021-05-31
  • 2021-06-20
  • 2022-12-23
  • 2021-07-15
  • 2022-12-23
  • 2021-06-22
猜你喜欢
  • 2022-12-23
  • 2021-10-30
  • 2021-09-22
  • 2022-01-26
  • 2022-12-23
  • 2021-06-02
相关资源
相似解决方案