css how to only make bold fonts for first
    set

前端 未结 4 1759
心在旅途
心在旅途 2021-01-21 21:27

I have 2 or more

4条回答
  •  半阙折子戏
    2021-01-21 21:50

    You'll have to use the child selector and make the top-level

      unique by giving it some class:

      ul.top-level > li > a {
         font-weight: bold;
      }​
      

      Demo: http://jsfiddle.net/kJJw9/

提交回复
热议问题