【发布时间】:2011-07-02 18:12:09
【问题描述】:
我想覆盖为所有表格定义的以下 CSS 样式:
table {
font-size: 12px;
width: 100%;
min-width: 400px;
display:inline-table;
}
我有一个名为'other'的类的特定表。
最后餐桌装饰应该是这样的:
table.other {
font-size: 12px;
}
所以我需要删除 3 个属性:width、min-width 和 display
我尝试使用none 或auto 进行重置,但没有帮助,我的意思是这些情况:
table.other {
width: auto;
min-width: auto;
display:auto;
}
table.other {
width: none;
min-width: none;
display:none;
}
【问题讨论】:
标签: css width overriding