作者:今天是星期天嘛_512 | 来源:互联网 | 2023-05-16 09:16
Assumingclientcompatibility,isthereanysituationwhereCSSbox-shadowispreferabletofilter:
Assuming client compatibility, is there any situation where CSS box-shadow
is preferable to filter: drop-shadow
.
假设客户端兼容性,是否有任何情况下CSS box-shadow比filter:shadow-shadow更可取。
From the article it seems like drop-shadow
is a HW accelerated superset of box-shadow
. This means that we should basically always use drop-shadow
instead of box-shadow
?
从文章看来,drop-shadow是一个硬件加速的盒子阴影超集。这意味着我们基本上应该总是使用drop-shadow而不是box-shadow?
2 个解决方案