1
我想實現類似於這樣的標題邊框半徑麻煩:我有一個CSS表
但我堅持這一點:
這裏是我的CSS到目前爲止
.tableco1{
font-family: Raleway;
width: 700px;
min-width: 500px;
padding-top: 15px;
padding-left: 15px;
border-collapse: collapse;
color: #005693;
border-radius: 10px;
font-size: 12px;
text-align: center;
}
.tableco1 tr:first-child th:first-child {
font-size: 14px;
font-weight: 800;
background-color: #005693;
border-top-left-radius: 15px;
border-bottom-left-radius: 15px;
color: #fff;
}
.tableco1 tr th:nth-child(2){
font-size: 14px;
font-weight: 800;
background-color: #005693;
-webkit-border-top-right-radius: 15px;
-moz-border-radius-topright: 15px;
border-top-right-radius: 15px;
border-bottom-right-radius: 15px;
color: #fff;
}
/* Top Right */
.tableco1 tr:first-child th:last-child{
background-color: #e6e6e6;
-webkit-border-top-right-radius: 15px;
-moz-border-radius-topright: 15px;
border-top-right-radius: 15px;
border-bottom-right-radius: 15px;
}
.tableco1 tr th{
font-size: 13px;
font-weight: 200;
padding-left: 30px;
color: #005693;
background-color: #e6e6e6;
}
.tableco1 tr {
height: 30px;
background: #F8F8F8;
}
<table class="tableco1">
<tr>
<th>Client ID:</th>
<th>M40014</th>
<th></th>
<th>M</th>
<th colspan="2">Pepsico de México</th>
</tr>
<tr>
<td>hi</td>
<td>hi</td>
<td>hi</td>
<td>hi</td>
<td>hi</td>
<td>hi</td>
<td>hi</td>
</tr>
</table>
這裏的的jsfiddle http://jsfiddle.net/knLqwzwc/
有什麼辦法來繪製整個背景顏色?
謝謝你這麼多的人! – 2015-03-31 06:01:01
最受歡迎的兄弟:)我的榮幸... – w3debugger 2015-03-31 06:02:12