1

我有那样的东西

$('body > :not(.extras)').addClass("desaturation_filtr");

并且必须将此课程应用于整个身体而无需额外课程

.desaturation_filtr
 {

    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%);
    -o-filter: grayscale(100%);
    filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale");
}

但是当它这样做时,该网站非常有问题,因为网页是像素化的并且不可读

您可以通过单击右上角的条纹按钮来实时查看@http ://www.industrukt.pl/des 。

在 Firefox 中一切都很好。

尝试使用

$('.extras').removeClass("desaturation_filtr");

但它不起作用。当然,在那行代码之前,我没有从之前的代码片段中删除

我认为这是 Chrome 错误:/ 但不知道如何解决

4

0 回答 0