我有一个看起来像透明的图像,但像追逐一样作为斑马表工作,我想应用颜色rgba(12,120,234,0.4);
如何同时显示图像和颜色
background-image: url('Images/embedded_bg.png');
background-color: rgba(12,120,234,0.4);
最佳答案
您可以将它们与 background 结合起来属性:
background: rgba(12,120,234,0.4) url('Images/embedded_bg.png') repeat 0 0;
关于html - 我如何使用 CSS 来做到这一点?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3571608/