表格单元格中的div height = 100%仅在表格本身具有height属性时才有效。<table border="1" style="height:300px; width: 100px;"> <tr><td>cell1</td><td>cell2</td></tr> <tr> <td> <div style="height: 100%; width: 100%; background-color:pink;"></div> </td> <td>long text long text long text long text long text long text</td> </tr></table>在FireFox中,UPD还应将height=100%值设置为父TD元素