[英]How can I add Bootstrap's carousel to my site without affecting css styling?
[英]css affecting all the tables in my site, how do avoid this?
我的問題是我有一個表的CSS,但似乎會影響我網站上的所有其他表。
CSS代碼示例:
tr:last-child td:last-child {
border-bottom-right-radius:3px;
}
/*effects map*/
td {
background:#555;
還有一些HTML示例:
<table class="table table-condensed table-striped">
<tbody>
<tr class="accordion-toggle">
<td class="firstColumn">data1</td>
<td class="secondColumn">data2</td>
在要應用此特定CSS的表上放置一個類,然后重寫CSS以使其看起來像這樣:
.mySpecialTable tr:last-child td:last-child {
border-bottom-right-radius:3px;
}
/*effects map*/
.mySpecialTable td {
background:#555;
更多: https : //coolestguidesontheplanet.com/getting-selective-css-styling/
這應該為您工作:
.accordion-toggle tr:last-child td:last-child {
border-bottom-right-radius:3px;
}
/*effects map*/
.firstColumn td {
background:#555;
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.