2011-09-30 32 views
0

問:如何覆蓋自定義表類的字體大小,以便它們不會獲取繼承的值?如何重寫樣式繼承?

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

讓我們看看你的html – BNL

回答

2

你有0.75em之間的空間。刪除它,樣式應正確設置(假設表格實際上有classorder)。

+0

doh ...今天太多的咖啡因! =)thx! – JaJ