2011-05-19 41 views
1

我尽快我包括的宽度530的宽度530在细胞内的内表中,外部表的边界有一个嵌套的表作为嵌套表增大外表的宽度

<table border="0" width="750" cellspacing="0" cellpadding="0"> 
    <tr align="center"> 
    <td width="530"> 
     <table border="0" cellspacing="0" cellpadding="0" width="530"> 
      <tr> 
       <td> 
        <tr> 
          <td width="14"></td> 
          <td width="177"> 
           <p style="color:#333333; line-height: 20px; font-size: 16px; font-family: Helvetica, Arial, sans-serif; font-weight:bold; text-align: left; margin-left: 0px; padding-top: 0px;">Expand Your Reach</p> 
           <ul style="color:#767676; line-height: 20px; font-size: 12px; font-family: Helvetica, Arial, sans-serif; list-style-image:url(http://demo.frostmiller.com/sss104/images/bullet.jpg);text-align:left; margin-left: 25px; padding:0; list-style-position:outside;"> 
            <li>Contrary to popular belief, Lorem Ipsum is not simply random text. </li> 
            <li>Contrary to popular belief, Lorem Ipsum is not simply random text. </li> 
            <li>Contrary to popular belief, Lorem Ipsum is not simply random text. </li> 
           </ul> 
           <br /> 
          </td> 
          <td width="29"></td> 
         </tr> 
         <tr> 
          <td colspan="3"> 
           <hr width="220" /> 
          </td> 
         </tr> 
         <tr> 
          <td width="14"></td> 
          <td width="177" align="left"> 
           <p style="color:#333333; line-height: 20px; font-size: 16px; font-family: Helvetica, Arial, sans-serif; font-weight:bold; text-align: left;">Contact Info</p> 
           <p style="color:#767676; line-height: 20px; font-size: 12px; font-family: Helvetica, Arial, sans-serif; text-align: left; margin-bottom: 2cm;">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer .</p> 
          </td> 
          <td width="29"></td> 
         </tr> 
       </td> 
      </tr> 
     </table> 
    </td> 
    <td width="220"> 
    </td> 
    </tr> 
</table> 

这里错位和扩大。我怎样才能阻止呢?

+1

没有嵌套表将是一个好的开始。我从来没有见过嵌套表格正确描述数据结构的情况。 – Quentin 2011-05-19 14:19:19

+0

同意@David。你想如何提供数据? – 2011-05-19 14:21:57

+0

我正在创建一个html电子邮件,因此没有其他选择,但巢表:( – user1212 2011-05-19 14:22:26

回答

2
  1. 你的HTML无效,表错误地嵌套(有额外的在那里trtd元素)

  2. 的数学不上,所以很难推测你在做什么,嵌套表是14+177+29 = 220但你有它的530细胞

  3. 内如果解决嵌套和改变

    <td width="530"> 
        <table border="0" cellspacing="0" cellpadding="0" width="530"> 
    

    到:

    <td width="530"> 
        <table border="0" cellspacing="0" cellpadding="0" width="100%"> 
    

    应该修复任何对准问题仍然留下

0

添加colspan="4"到外<td>,里面的嵌套<table>