日期:2014-05-18  浏览次数:20457 次

列一多为什么width会失效?
看一下效果,会发现td的width失效了,如何解决.列很少的正常
<!DOCTYPE   HTML   PUBLIC   "-//W3C//DTD   HTML   4.0   Transitional//EN ">
<HTML>
  <HEAD>
    <TITLE>   New   Document   </TITLE>
    <META   NAME= "Generator "   CONTENT= "EditPlus ">
    <META   NAME= "Author "   CONTENT= " ">
    <META   NAME= "Keywords "   CONTENT= " ">
    <META   NAME= "Description "   CONTENT= " ">
  </HEAD>

  <BODY>
    <table   border=1> <tr>
    <td   width= "200px "> abc </td>
    <td   width= "200px "> abc </td>
    <td   width= "200px "> abc </td>
    <td   width= "200px "> abc </td>
    <td   width= "200px "> abc </td>
    <td   width= "200px "> abc </td>    
    <td   width= "200px "> abc </td>
    <td   width= "200px "> abc </td>
    <td   width= "200px "> abc </td>
    <td   width= "200px "> abc </td>
    <td   width= "200px "> abc </td>
    <td   width= "200px "> abc </td>    
    <td   width= "200px "> abc </td>
    <td   width= "200px "> abc </td>
    <td   width= "200px "> abc </td>
    <td   width= "200px "> abc </td>
    <td   width= "200px "> abc </td>
    <td   width= "200px "> abc </td>    
    <td   width= "200px "> abc </td>
    <td   width= "200px "> abc </td>
    <td   width= "200px "> abc </td>
    <td   width= "200px "> abc </td>
    <td   width= "200px "> abc </td>
    <td   width= "200px "> abc </td>    
    <td   width= "200px "> abc </td>
    <td   width= "200px "> abc </td>
    <td   width= "200px "> abc </td>
    <td   width= "200px "> abc </td>
    <td   width= "200px "> abc </td>
    <td   width= "200px "> abc </td>

 
    </tr> </table>
  </BODY>
</HTML>


------解决方案--------------------
给table也加上Width
------解决方案--------------------
把Width换成百分制,比如“10% "
------解决方案--------------------
<table border=1> 里面也要加上width
------解决方案--------------------