我的产品图片带有白色背景色。图像源链接来自客户端数据库。因此,我需要使用 JS 或 CSS 将图像转换为透明的背景颜色(白色)。
有人知道有更好的解决方案吗?
我听说过在图像网址中添加bkgnd=transparent
值,这是否可行?
在Google中搜索了很多时间,但是没有找到合适的解决方案。
查看我的代码:
.container {
width: 100%;
max-width: 600px;
padding: 10px;
background: url(https://picsum.photos/200/300) center center no-repeat;
background-size: cover;
}
img {
width: 100%;
}
<div class="container">
<img src="https://imgd.aeplcdn.com/1056x594/n/suk7osa_1474663.jpg?q=85">
</div>
答案 0 :(得分:-2)
您应使用Error:(27, 27) java: cannot find symbol
symbol: class Route
location: class si.um.opj.crisan.logic.Launcher
,不要使用白色背景。您不能仅在白色背景下更改不透明度并保持汽车原状