鼠标移动到小方块上,滑出来另一个长方块
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
*{
margin:0;padding:0;}
#src1{
width: 80px;height: 60px;background:red;color:white;line-height: 60px;margin-top: 200px;position: relative;text-align: center;}
#src2{
width: 180px;height: 60px;background:blue;color:white;line-height: 60px;position: absolute;top: 0px;left: -100px;text-align: center;z-index: -80;}
</style>
</head