鼠标经过div改变背景色

时间:2015-06-29 20:11:19   收藏:0   阅读:104

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

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!