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

后端 未结 3 406
鱼传尺愫
鱼传尺愫 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条回答
  •  南方客
    南方客 (楼主)
    2021-01-24 15:50

    CSS2.1 does support selectors such as [att=”val”], in your case [href="#header"], I don't know how many browsers support those yet, though.

    But can't you just mark the desired A's with a dedicated class?

提交回复
热议问题