/* Case sensitive */ a[href*='css-tricks' s] {} /* Case insensitive */ a[href*='css-tricks' i] {} 添加一个 s 将使选择器区分大小写,而 i 则使其不区分大小写。 来源