[英]Table data display in HTML
下表:如何自動調整表格的高度和寬度。
即,如果數據更多,則應顯示所有數據,否則以時髦的方式顯示數據
<table id="mytable">
<tr>
<td>more data.............................................................................</td>
<td>a</td>
</tr>
</table>
在大數據塊或小數據塊的情況下,什么也不要干。
謝謝。
在標簽或樣式中使用“ nowrap”:
<td nowrap>...</td>
- - 要么 - -
<style>
.cell {
white-space:nowrap;
}
</style>
<td class="cell">...</td>
使用css overflow
屬性。
對您的<td>
標簽使用百分比寬度和高度,無論它們內部的內容如何,它們都將相對於彼此進行調整。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.