鼠标移动移出事件
实现效果:
鼠标移动至标签一显示内容“1”
鼠标离开标签一还原样式
js代码
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
</head>
<style>
.outer {
width: 400px;
height: 40px;
margin: 0 auto;
margin-top: 5px;
color: aliceblue;
}
.box {
height: 30px;
width: 80px;
background-color: black;
line-height: 30px;
text-align: center;
display: inline-block;
}
#hide {
width: 400px;
height: 70px;
margin: