在下表中:如何自动调整表格的高度和宽度。
,即如果数据更多,它应该以时尚的方式显示所有其他数据的其他数据
<table id="mytable">
<tr>
<td>more data.............................................................................</td>
<td>a</td>
</tr>
</table>
在大块数据或小块数据的情况下,任何东西都不应该被包裹。
感谢。
答案 0 :(得分:1)
在标签或样式中使用'nowrap':
<td nowrap>...</td>
---或---
<style>
.cell {
white-space:nowrap;
}
</style>
<td class="cell">...</td>
答案 1 :(得分:0)
使用css overflow
属性。
答案 2 :(得分:0)
使用<td>
代码的百分比宽度和高度,无论其中的内容是什么,它们都会相对于彼此进行调整。