我正在使用 table-stripped
和 Twitter Bootstrap .
我可以通过悬停来定位任何其他元素,没有 table-striped
一切都很好,但是当我使用 table-striped
时,某些元素无法激活。
原因:table-striped
You can see on JSFiddle for demo
我该如何解决这个问题?
最佳答案
这是因为 CSS 的特殊性。
如果您懒于覆盖 Bootstrap CSS 选择器,请增加 CSS 选择器特异性值或使用 !important。
table.table.table-striped tr.myTip td {
background: red;
}
或
.myTip td {
background: red !important;
}
关于javascript - Bootstrap - 无法获取 "table-striped",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39506445/