styling links inside a div with a specific class

前端 未结 1 1811
醉话见心
醉话见心 2021-02-08 14:26

I am wondering how i would be able to style links inside a given div with a given class like

.navigation-div : a:link,a:visited {
  color:red;
  }
相关标签:
1条回答
  • 2021-02-08 15:11
    .navigation-div a:link, .navigation-div a:visited {
        color:red;
    }
    

    jsFiddle example

    0 讨论(0)
提交回复
热议问题