使用百分比宽度和浮点数。此外,您可能希望这里有一个 div 而不是跨度。
http://jsfiddle.net/wf55h/
css
.rent-roll-container {
background: green;
height: 100%;
}
.rent-roll-month-nav {
background: blue;
width:10%;
float:left;
}
.rent-roll-table {
background: red;
width:80%;
float:left;
}
html
<div class="rent-roll-container">
<div class="rent-roll-month-nav">
<p>PRE</p>
</div>
<div class="rent-roll-table">
<table class="table table-striped text-center">
<thead class="text-center">
<tr>
<th>Street Address</th>
<th>Tenant(s)</th>
<th>Rent</th>
<th>Late</th>
</tr>
</thead>
<tbody>
<tr>
<td>sdaf</td>
<td>sdaf</td>
<td>sdaf</td>
<td>sdaf</td>
</tr>
<tr>
<td>sdaf</td>
<td>sdaf</td>
<td>sdaf</td>
<td>sdaf</td>
</tr>
<tr>
<td>sdaf</td>
<td>sdaf</td>
<td>sdaf</td>
<td>sdaf</td>
</tr>
<tr>
<td>sdaf</td>
<td>sdaf</td>
<td>sdaf</td>
<td>sdaf</td>
</tr>
<tr>
<td>sdaf</td>
<td>sdaf</td>
<td>sdaf</td>
<td>sdaf</td>
</tr>
</tbody>
</table>
</div>
<div class="rent-roll-month-nav">
<p>NXT</p>
</div>
<div style="clear:both"></div>
</div>