<分区>
我正在尝试使用 css 反转颜色 filter
属性(property)。我申请了filter:invert(100%)
体内。我希望过滤器属性不应该影响 <img />
元素。我添加了 css :not(img)
在body
.但是,它不会起作用。
.aaa {
width: 100px;
height: 100px;
background: #00a3fe;
margin: 5px
}
body:not(img) {
filter: invert(90%)
}
<div class="aaa">
</div><div class="aaa">
</div>
<img src="http://pngimg.com/uploads/birds/birds_PNG115.png" />