鼠标经过div改变背景色

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<style>
p1{ width:500px; height:500px; }
.p1:hover{cursor:pointer;background:#F00; }
</style>

</head>

<body>
<div class="p1"><a href="#">adfasdfasdf</a></div>
</body>
</html>

posted on 2015-06-29 18:06  股舞人心  阅读(350)  评论(0)    收藏  举报