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

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

탐색 리 A를 {

.. }

- 부모 - 자식 관계 및

탐색> 리>은 {

.. }를 임의의 깊이

- 첫 번째 수준의 부모 - 자식 관계

관련 문제