gpt4 book ai didi

html - 表之间的边距 td

转载 作者:太空宇宙 更新时间:2023-11-04 11:04:07 26 4
gpt4 key购买 nike

我需要以下布局。我试图使用下面的代码,但无法得到它。我希望两行之间有背景颜色的边距。

.table.BillingPage>thead>tr>th {
font-weight: normal;
color: #FF004F;
padding-bottom: 0;
border-bottom: 2px solid #FF004F;
}
.table.BillingPage>tbody>tr {
background-color: #f2f3f5!important;
}
.table.BillingPage>tbody>tr>td {
margin: 5px 0;
border: none;
}
tr.yearly {
border-left: 5px solid #019cde;
}
tr.monthly {
border-left: 5px solid red;
}
.promotionalCode {
border-radius: 4px;
border: 1px solid #ccc;
}
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<table class="table table-condensed BillingPage">
<thead>
<tr>
<th>Business Name</th>
<th>Promotional Code</th>
<th>Payment Cycle</th>
<th>Price</th>
<th style="visibility:hidden;">&nbsp;</th>
</tr>
</thead>
<tbody>
<tr class="yearly">
<td>Black Women In Arts</td>
<td>
<input type="text" id="discount-" onclick="" onblur="" name="discountlisting_id" class="promotionalCode" value="">
</td>
<td>
<label class="checkbox-inline">
<input type="checkbox" value="">Yearly</label>
<label class="checkbox-inline">
<input type="checkbox" value="">Monthly</label>
</td>
<td id="singleprice-">$111.98</td>
<td><i class="fa fa-times"></i>&nbsp;<a href="#">Remove</a>
</td>
</tr>
<tr class="monthly">
<td>Ocean Outdoor (UK)</td>
<td>
<input type="text" id="discount-" onclick="" onblur="" name="discountlisting_id" class="promotionalCode" value="">
</td>
<td>
<label class="checkbox-inline">
<input type="checkbox" value="">Yearly</label>
<label class="checkbox-inline">
<input type="checkbox" value="">Monthly</label>
</td>
<td id="singleprice-">$111.98</td>
<td><i class="fa fa-times"></i>&nbsp;<a href="#">Remove</a>
</td>
</tr>
<tr class="yearly">
<td>Silvermere Golf &amp; Leisure Ltd</td>
<td>
<input type="text" id="discount-" onclick="" onblur="" name="discountlisting_id" class="promotionalCode" value="">
</td>
<td>
<label class="checkbox-inline">
<input type="checkbox" value="">Yearly</label>
<label class="checkbox-inline">
<input type="checkbox" value="">Monthly</label>
</td>
<td id="singleprice-">$111.98</td>
<td><i class="fa fa-times"></i>&nbsp;<a href="#">Remove</a>
</td>
</tr>
</tbody>
</table>

enter image description here

最佳答案

将此 CSS 添加到您的代码中:

 tr  td
{
border-bottom:10px solid #fff !important
}

关于html - 表之间的边距 td,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34127301/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com