我使用Twitter Bootstrap的CSS,并由于某些原因它覆盖了我的一些类。Bootstrap CSS覆盖我的自定义CSS
首先我我的自定义CSS之前加载它(我用玉和手写笔的模板引擎): HTML头:
doctype html
html
head
title= title
link(rel='stylesheet', href='/css/vendor/bootstrap.min.css')
link(rel='stylesheet', href='/css/style.css')
在我的HTML体:
table.table.table-striped
thead
th some items
th some items
th some items
tbody
tr
td.table__td
a.table__link(href='/') some items
tr
td.table__td
a.table__link(href='/') some items
tr
td.table__td
a.table__link(href='/') some items
CSS:
.table__td
padding 0
但是我得到了我的桌子上的原始8px填充td:
这是怎么发生的?
非常感谢
谷歌的CSS选择器的特异性' – 2014-10-01 13:32:55
你缺少括号? – Dorvalla 2014-10-01 13:33:19
这里有一个很好的解释:[关于css特异性的细节](http:// css-tricks。com/specifics-on-css-specificity /) – 2014-10-01 13:34:44