Is this the desired look: http://jsfiddle.net/Uhz8k/ ? This works in Firefox 21+, Chrome 43+ (probably earlier), and IE11. It doesn't work in IE9. (Don't know about IE10.)
The html code is below:
<table class="table">
<tr>
<th>First</th>
<th>Second</th>
</tr>
<tr>
<td class="expand-column">
Some long long text here, Some long long text here, Some long long text here,
Some long long text here, Some long long text here, Some long long text here,
Some long long text here, Some long long text here, Some long long text here,
Some long long text here, Some long long text here, Some long long text here.
</td>
<td class="no-wrap"> Other text here </td>
</tr>
<tr>
<td class="expand-column">
Some other long text here, Some other long text here, Some other long text here,
Some other long text here, Some other long text here, Some other long text here,
Some other long text here, Some other long text here, Some other long text here,
Some other long text here, Some other long text here, Some other long text here.
</td>
<td class="no-wrap"> Some other text here </td>
</tr>
</table>
and the CSS:
.table {
width: 100%;
border: 1px solid grey;
}
.expand-column {
max-width: 1px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
border: 1px solid grey;
}
.no-wrap {
white-space: nowrap;
border: 1px solid grey;
width: 1px;
}
th {
border: 1px solid grey;
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…