前端之样式的hover效果
作者:互联网
<!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>
标签:info,hover,样式,text,前端,100px,decoration,color 来源: https://blog.csdn.net/qq_19831379/article/details/119043198