How to separate styles in a nested list styling?

前端 未结 4 2012
[愿得一人]
[愿得一人] 2021-01-02 03:21

I have a list and list also has list in it.
I set styles on parent list but I want different styles for parent and child list but they are mixed somehow I can\'t separat

4条回答
  •  旧巷少年郎
    2021-01-02 03:49

    Use the ul li ul li {...} Or

    ul li ul {....} to give different style to child list. if you are looking for navigation menu with child menu.

    Here is really nice example of same.

    It uses CSS3.

提交回复
热议问题