开发者

Color change onhover?

开发者_如何学Python

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>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜