2016-10-23 10 views
0
#nav li a{ 
    .. 
} 

これらの2つのCSSの違いは何ですか?

#nav>li>a{ 
    .. 
} 

私を助けてください。私は両方が同じではないと思います。

+0

'parent> child'と' ancestor any_descendant' – user2864740

+0

簡単な言葉で説明してください。 –

+0

http://stackoverflow.com/questions/4459821/css-selector-what-is-it?noredirect=1&lq=1、http ://stackoverflow.com/questions/3225891/what-does-the-greater-than-sign-css-selector-mean、http://stackoverflow.com/questions/8787134/when-to-use-sign-in -css?noredirect = 1&lq = 1、http://stackoverflow.com/questions/9487483/what-does-mean-in-css?noredirect=1&lq=1 – user2864740

答えて

2

NAVリチウムのA {

..}

- 親子関係 の任意の深さでかつ

NAV> LI> {

..}

- 最初の親子関係のレベル

関連する問題