日期:2014-05-19  浏览次数:20417 次

这个表格该怎么调整列名才会横着显示?
列名太长,导致被挤得竖了起来,大家看看该怎么调整?
<table   id= "Table1 "   height= "410 "   cellSpacing= "1 "   cellPadding= "1 "   width= "810 "   align= "center "   border= "0 ">
<tr>
<td   bgColor= "#ffffff ">
  <div   style= "width:810px;height:405;overflow:auto ">  
  <table   border=1>
    <tr   height= "10 "> <td> 质量技术监督部门质量编号 <td> ......

最外面的表格大小是固定的,DIV大小也是固定的,里面的表格大小不固定,我要让它随着记录长度的变化而出现滚动条,现在滚动条是有,可是列名还是被挤得竖了起来,怎么让它横着?

------解决方案--------------------
<tr height= "10 " width= "100px "> <td> 质量技术监督部门质量编号 <td> ......
------解决方案--------------------
<tr>
<th nowrap= "nowrap "> &nbsp; </th>
</tr>

------解决方案--------------------
<table style= "TABLE-LAYOUT: fixed; OVERFLOW: hidden ">
------解决方案--------------------
帮顶