问:如何覆盖自定义表类的字体大小,以便它们不会获取继承的值?
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 */
}
答案 0 :(得分:2)
0.75
和em
之间有空格。删除它并应正确设置样式(假设表实际上有class
order
)。