我在代码中发现了一个问题。当我进入菜单时,会自动打开div“Image”。问题是我不在菜单之外。
.menu li img{
position:relative;
width:200px; height:auto; margin:0 auto;
z-index: 1;
opacity: 0;
left:-40px; top:-10px;
-webkit-transition: left 0.4s ease-in-out, opacity 0.6s ease-in-out;
-moz-transition: left 0.4s ease-in-out, opacity 0.6s ease-in-out;
-o-transition: left 0.4s ease-in-out, opacity 0.6s ease-in-out;
-ms-transition: left 0.4s ease-in-out, opacity 0.6s ease-in-out;
transition: left 0.4s ease-in-out, opacity 0.6s ease-in-out;
}
请参阅demo