首页 > 解决方案 > 应用了渐变的图像:通过 css 添加渐变或将它们直接应用于 src img 的性能更好?

问题描述

说我需要对图像进行渐变。我有几个这样的图像。性能方面,直接在图像(photoshop等)上做更好,就像附加的那样,还是使用放置在图像上的css-gradient更好?

在此处输入图像描述

标签: htmlcssimageperformancegradient

解决方案


according to me the better way is to add overly over the Image. so if you want any change in future you just have to change the color code of an overly. it would be a easily way to do this


推荐阅读