说我想从
覆盖bootstrap表类.table {
width: 100%;
max-width: 100%;
margin-bottom: 20px;
要:
.table {
width: 100%;
max-width: 100%;
我不想将margin-bottom
覆盖到0
,因为我希望它保留其父将为其定义的内容,如何在不更改实际bootstrap.css文件的情况下实现此目的?
答案 0 :(得分:1)
试试这个
.table {
width: 100%;
max-width: 100%;
margin-bottom: auto; or margin-bottom: inherit;
}
答案 1 :(得分:-1)
您可以在html中为元素添加另一个类,并将margin-bottom设置为零。