is it possible to select element with specific content or attribute in CSS?

后端 未结 3 411
鱼传尺愫
鱼传尺愫 2021-01-24 14:57

Is it possible to select element with specific content?

for example in #footer i have multiple so i can\'t use #footer > a {}

can i

3条回答
  •  闹比i
    闹比i (楼主)
    2021-01-24 15:51

    If I understand you correctly, your selector would be something like this

    a[href="yourlink"]
    

    This will select one specific link in your footer that has "yourlink" in the href attribute Is this what you want?

提交回复
热议问题