摘要:
二级导航动画实现*{margin: 0px;padding: 0px}
.menu{width: 800px;height: 35px;margin: 0px auto;background: grey;margin-top: 20px;color: black;border: 1px solid pink;border-radius: 5px}
ul{list-style-type: none}
ul li{width: 100px;height: 35px;line-height: 35px;text-align: center;float: left;border-right: 1px solid orange;cursor: pointer}
.two li{width: 100px;height: 35px;line-height: 30px;background: grey;color: black;font-size: 14px;position: relative;border: 0px}
.one li:hover{background: orangered;border-bottom: 1px solid white}
$(document).ready(function () {
$('.two').hide();
$('.one>li').mouseover(function () {
$(this).find('.two').slideDown(700);
});
$('.one>li').mouseleave(function () {
$(this).find('.two').slideUp(700)
})
})
批改老师:天蓬老师批改时间:2019-05-28 16:01:39
老师总结:jQuery中的动画 , 实现起来非常的方便, 但也有一些不错的第三方动画 库更强大, 可以了解一下