如何为图像设置颜色 [英] how to set color for the image

查看:76
本文介绍了如何为图像设置颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在CSS中有一张图片...
我改变了颜色...

I have an image in css ...
I have change its color...

HomeListData {
   background: url("../image/dot.jpg") no-repeat scroll 5px 1px transparent;
    display: block;
    padding: 5px 0 2px 15px;
}



在此图像dot.jpg是黑色的...我想更改为红色...任何可能的更改



In this the image dot.jpg is in black color...I want to change to red color...Any possibility to change

推荐答案

您不能更改颜色使用CSS的图像! CSS是用于样式的.图像颜色不是可以使用CSS来完成的.

使用某些编辑器(例如Paint!)更改图像颜色,然后使用它.
You cannot change the color of an image using CSS! CSS is for styling. Image color is not something which can be done using CSS.

Change your image color using some editor (eg Paint!) and then use it.


这篇关于如何为图像设置颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆