改变图片链接的颜色? [英] change colour of picture link?

查看:81
本文介绍了改变图片链接的颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(对不起,如果答案很明显,我是html的新手)



因此有一种方法可以改变图片链接的颜色过度?图像为1纯色。



目前我的代码:

(sorry if the answer is obvious, i'm new to html)

So is there a way to change the colour of a picture link when its hovered over? The image is 1 solid colour.

My code at the moment:

<img border="0" alt="twitter" src="twitterlogo.png" width="25" height="22"

推荐答案

如果我理解得很好你想在你悬停时改变图像的边框颜色它。我建议你将你的元素包含在div中,添加一个类名,然后设置你的类的样式。





.image img {

border:1px solid transparent;



}

.image:悬停img {

border-color:red;

}
If I understood well u want to change the border color of the image when u hover on it. I suggest u to include ur elements into a div , add a class name and then style ur class.


.image img{
border: 1px solid transparent;

}
.image:hover img{
border-color: red;
}


这篇关于改变图片链接的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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