HTML表头没有对齐

时间:2014-02-26 17:25:18

标签: html html-table

我继承了以前公司的申请来维护它;很少或没有过渡文件。我有一个显示表格的屏幕。通过将对齐方式更改为左侧,我能够在我的开发系统上对齐标题。当我把它推广到Production时,一切都仍然像我修复之前一样在左边揉成一团。我已经检查了,我的最新代码就在那里。我的ColdFusion技能充其量只是业余爱好者。它在一台机器上正确显示,而在另一台机器上没有。我错过了什么?

<head>
<style>
body {margin-top:0; margin-bottom:0;}
table.wrapper {width:780; background-image:"../images/white7.jpg"; border:0;}
table.main {width:780px; background-image:"../images/white7.jpg"; text-align:left; border-color:#FFFFFF}
.center {text-align:center;}
.title {font: bold 12pt Arial; color: darkblue;}
tr.headings {font: bold 8pt Arial; color: #000080; background-color:#CCCCCC; vertical-align:baseline; height:17;}
.button-normal { background-color:#ffffcc; font: bold 8pt; color:#000080; border-left:0px; border-top:0px; padding-left:10px; padding-right:10px; height:18px; cursor:pointer; cursor: hand;}
</style>
</head>
<body>
<table class="wrapper">
  <tr>
    <td class="center"><span class="title">Stuff</span></td>
  </tr>
  <tr>
    <td><table class="main" frame="void" rules="rows" align="left" cellpadding=0 cellspacing=0 border=1>
        <tr>
          <td colspan=6></td>
        </tr>
        <tr class="headings">
          <td colspan="6" class="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="width:80px">Col1Top<br>Col1Bot</span> 
            <span style="width:90px">Col2Topp<br/>
            Col2Bot</span> <span style="width:100px">Col3Top<br/>
            Col3Bot</span> <span style="width:100px">Col4Top<br/>
            Col4Bot FY</span> <span style="width:90px">Col5Top<br/>
            Col5Bot</span> <span style="width:50px">Col6Top<br/>
            Col6Bot</span> <span style="width:50px">Col7Top<br/>
            Col7Bot</span> <span style="width:80px">Created<br/>
            by</span> <span style="width:80px">Created<br/>
            Time</span> </td>
        </tr>
        <tr>
          <td colspan=6><IFrame name="IFrame1" 
                            <cfoutput>
                                src="StuffConfig_detail.cfm<cfif isdefined('url.menu')>?menu=config</cfif>"
                            </cfoutput> 
                            width="100%" height="330px" frameborder="no" scrolling="Yes"> </IFrame></td>
        </tr>
        <tr>
          <td valign=top colspan=4 >
          <td valign=top align=right colspan=2><cfif #session.logID# eq "bmt.admin" >
              <input type=button onClick="javascript:top.leftFrame.document.location='StuffConfig_New.cfm<cfif isdefined('url.menu')>?menu=config</cfif>'" class="button-normal" value="Add New Stuff" >
            </cfif>
            <input type=button onClick="javascript:top.leftFrame.document.location='<cfif isdefined("url.menu")>Stuff_Manage.cfm?page=2005<cfelse>stuffmain.cfm</cfif>'" class="button-normal" value="Exit" >
          </td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>

任何帮助都将不胜感激。

0 个答案:

没有答案