2013-04-05 193 views

回答

2

取決於

不要緊,在哪個級別elementClass中位於DIVCLASS?

如果沒有,使用:

.divclass .elementclass { 
    //properties here 
} 

如果你只需要選擇elementClass中是直系子孫DIVCLASS,使用

.divclass > .elementclass { 
    //properties here 
} 

不要使用div.divclass overspecify除非真的有必要。

+0

謝謝你,真的很有用:) – Ellbar 2013-04-05 11:07:28

相關問題