<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
.waibiankuang{
background-color: red;
width: 250px;
height: 50px;
line-height: 50px;
}
p a{
display: block;
text-decoration: none;
}
a:hover{
transform: translate(10px,0px);
transition: all 1s;
}
</style>
</head>
<body>
<div class="waibiankuang">
<p><a href="#">yang</a></p>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
*{
margin: 0;
padding: 0;
}
ul{
list-style: none;
}
.nav li{
float: left;
}
.drop-down-content{
padding: 0;
display: none;
position: absolute;
}
.nav .drop-down:hover .drop-down-content{
display: block;
}
</style>
</head>
<body>
<ul class="nav">
<li class="drop-down"><a href="#">菜单</a>
<ul class="drop-down-content">
<li><a href="#">糖醋排骨</a></li>
</ul>
</li>
</ul>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
.no5 img{
transition: all 10s;
}
.no5 img:hover{
transform: scale(5);
}
</style>
</head>
<body>
<div class="no5"><img src="img/logo.png"/></div>
</body>
</html>