<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
.test {
width: 100px;
height: 100px;
background-color: #000000;
}
/* 划入效果 */
.test:hover {
background-color: #FF0000;
}
.info {
color: steelblue;
text-decoration: none;
}
.info:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="test"></div>
<a href="http://www.baidu.com" class="info">百度知道</a>
</body>
</html>
前端之样式的hover效果
最新推荐文章于 2024-04-17 01:47:34 发布
