setting font color of inside a li tag

后端 未结 9 1591
臣服心动
臣服心动 2021-02-20 07:26

My markup looks like:


I want th

相关标签:
9条回答
  • 2021-02-20 07:43
    <style>
      div.c1 li.c2 a { color: red; }
    </style>
    
    0 讨论(0)
  • 2021-02-20 07:47

    First choose the div you want to change which is .c2 inside this is a link which should be selected like

    .c2 a { color:red }
    
    0 讨论(0)
  • 2021-02-20 07:48

    The following code will do (very specific).

    .c1 .c2 a { color: red; }
    
    0 讨论(0)
提交回复
热议问题