我只是想问一下如何更改表头外部的边框颜色。表头之间的边框应该保持白色。我已经做了几次更改,但是默认的灰色似乎没有改变。下面是我的代码:
.table th {
background-color: #3886BE;
color: #ffffff;
text-align: center;
vertical-align: middle;
}<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet"/>
<div class="table-responsive" id="query_result" style="margin-left:10px;margin-right:10px;">
<form>
<table class="table table-bordered table-responsive">
<tr>
<th>No.</th>
<th>Details</th>
<th>S.O.</th>
<th>Client Name</th>
<th>Company</th>
<th>Service Avail</th>
<th>Category</th>
<th>Received</th>
<th>Completion</th>
<th>Remaining</th>
<th>Timeline</th>
<th>Status</th>
</tr>
</table>
</form>
</div>
你可以查看下面的图片作为参考。我在那里留下了一些标题,以了解更多细节。enter image description here
发布于 2019-06-05 23:06:41
给你,巴迪:)
.table th {
background-color: #3886BE;
color: #ffffff;
text-align: center;
vertical-align: middle;
}
.table-bordered td, .table-bordered th {
border: 1px solid #3886BE !important;
border-left: 1px solid #fff !important;
border-right: 1px solid #fff !important;
}
.table-bordered {
border: 0 !important;
}
table.table.table-bordered.table-responsive {
margin-top: 10px;
}<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet"/>
<div class="table-responsive" id="query_result" style="margin-left:10px;margin-right:10px;">
<form>
<table class="table table-bordered table-responsive">
<tr>
<th>No.</th>
<th>Details</th>
<th>S.O.</th>
<th>Client Name</th>
<th>Company</th>
</tr>
</table>
</form>
</div>
https://stackoverflow.com/questions/56462803
复制相似问题