【发布时间】:2015-07-27 06:36:11
【问题描述】:
I have the following html that is using Bootstrap stylesheets: <button class="label btn-lg">Save</button> My understanding of CSS Specificity rules that btn-lg overrides label values (When selectors have an equal specificity value, the latest rule is the one that counts )。但是,无论我对类使用哪种顺序,标签都会取代 btn-lg
如何让 btn-lg 覆盖标签?
【问题讨论】:
-
如果没有看到您的 CSS,这将是一个难以破解的难题。此外,它不是将类应用于元素的顺序,而是它们在样式表中的顺序会影响特异性。
标签: css twitter-bootstrap css-specificity