c*****t 发帖数: 1879 | 1 【 以下文字转载自 Programming 讨论区 】
【 原文由 coconut 所发表 】
In CSS, we can group several selectors by comma
H1,H2 { font-family: verdana; }
So both H1 and H2 would set to the same font.
We could also do decendence selectors:
TD DIV { font-family: verdana; }
So, all the DIV's inside TD would have font verdana.
Now, my question is, is it possible to combine the two?
I've tried:
TD DIV,SPAN { font-family: verdana; }
but, only DIV got its font changed.
Also, I had situations like:
TD.ABC,TD.DEF DIV { font-famil |
|