Combine CSS Attribute Selectors

后端 未结 1 831
渐次进展
渐次进展 2020-12-17 20:59

is there a way to combine CSS2 Attribute Selectors like tr[id^=\"foo\" AND id$=\"bar\"], so it selects all

相关标签:
1条回答
  • 2020-12-17 21:59

    The same way you combine any selectors.

    tr[id^="foo"][id$="bar"]
    

    Those two substring matching selectors, however, are being introduced in the CSS 3 draft. They are not CSS 2.

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