删除css选择器propery而不更改源css?

时间:2017-02-16 14:24:09

标签: css twitter-bootstrap

说我想从

覆盖bootstrap表类
.table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;

要:

.table {
    width: 100%;
    max-width: 100%;

我不想将margin-bottom覆盖到0,因为我希望它保留其父将为其定义的内容,如何在不更改实际bootstrap.css文件的情况下实现此目的?

2 个答案:

答案 0 :(得分:1)

试试这个

.table {
    width: 100%;
    max-width: 100%;
    margin-bottom: auto; or margin-bottom: inherit;
}

答案 1 :(得分:-1)

您可以在html中为元素添加另一个类,并将margin-bottom设置为零。