颜色变化onhover? [英] Color change onhover?
本文介绍了颜色变化onhover?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
感谢您的帮助!
$ b 如何制作简单的方块,当您将鼠标悬停时(或鼠标悬停) $ b解决方案
这是:
<样式类型= 文本/ CSS >
div.test
{
width:115px;
height:115px;
background-color:blue;
}
div.test:悬停
{
background-color:red;
}
< / style>
< div class =test>< / div>
How do you make a simple square that when you hover (or mouseover) the whole thing changes color?
Thanks for the help!
解决方案
Here it is:
<style type="text/css">
div.test
{
width: 115px;
height: 115px;
background-color: blue;
}
div.test:hover
{
background-color: red;
}
</style>
<div class="test"></div>
这篇关于颜色变化onhover?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文