Are CSS selectors case-sensitive?

前端 未结 4 1028
借酒劲吻你
借酒劲吻你 2020-12-01 12:02

I was recently updating a CMS site and a tab-navigation plugin had inserted the following markup:

  • ...
  • I\'ve alway

    4条回答
    •  广开言路
      2020-12-01 12:39

      CSS4 (CSS Selector Level 4) adds support for case-insensitive match (ASCII only).

      input[value='search' i]

      It's the "i" at the end which would do the trick...

      Check my other answer for details which browser supports this.

    提交回复
    热议问题