[转载] CSS question# Internet - 有缘千里一线牵
c*t
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
【 原文由 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