如何覆盖样式继承?

时间:2011-09-30 16:59:37

标签: html css css3

问:如何覆盖自定义表类的字体大小,以便它们不会获取继承的值?

table {
    font-size: 1.09em;
    /* other stuff... */  
}

table.order
{
    font-size: 0.75 em;  /* font isn't getting set....it's picking up the 1.09em from the above table */
}

1 个答案:

答案 0 :(得分:2)

0.75em之间有空格。删除它并应正确设置样式(假设表实际上有class order)。