我想知道如何使表格中的所有行具有相同的宽度?正如您在页面中看到的...我想更改标题的背景颜色,但标题与正文中的元素的宽度不同。如何使所有行的宽度相同,以便背景颜色覆盖整个宽度?谢谢!
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery.min.js"></script>
<link href="http://twitter.github.io/bootstrap/assets/css/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="http://twitter.github.io/bootstrap/assets/css/bootstrap-responsive.css" rel="stylesheet" type="text/css" />
<script src="http://twitter.github.io/bootstrap/assets/js/bootstrap.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<!-- the dark background has to cover the whole width of the second row...-->
<table class="table table-striped">
<thead>
<tr>
<th>Date</th>
<th>hl</th>
<th>Invoice</th>
<th>fefe</th>
<th>fefefef</th>
<th>fe VAT</th>
<th>C. dfgdf VAT</th>
<th>dfgdf</th>
</tr>
</thead>
<tbody>
<tr>
<th><a class="inData" href="">17.17.17</a></th>
<th><a class="inData" href="">50123</a></th>
<th><a class="inData" href="">Invoice</a></th>
<th><a class="inData" href="">Hola señor</a></th>
<th><a class="inData" href="">-123.00</a></th>
<th><a class="inData" href="">111</a></th>
<th><a class="inData" href="">1200</a></th>
<th><a class="inData" href="">GSP</a></th>
<th><a class="deleteItem" href="#"><img src="" alt=""/>item</a></th>
<th><a href="#myModal" role="" class="" data-toggle="modal">last-item</a></th>
</tr>