트위터 부트 스트랩의 CSS를 사용하고 있으며, 몇 가지 이유 때문에 일부 클래스를 덮어 씁니다.부트 스트랩 CSS가 내 사용자 정의 CSS를 덮어 씁니다.
먼저 나는 (I 옥 스타일러스 템플릿 엔진을 사용하고 있습니다) 내 사용자 지정 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 패딩이 있습니다.
어떻게 될 수 있습니까?
많은 감사
구글에서 'CSS를 선택 특이성' –
당신이 브래킷을 누락? – Dorvalla
여기 [CSS 특이성에 대한 설명] (http : // css-tricks.com/specific-on-css-specificity /) –