나는 css jquery 메뉴로 작업 중이다. 이 코드는 http://jsfiddle.net/A6rUG/이며 대신 아래로 애니메이션을 적용하려고합니다. 코드는 트릭을 할 것 같지 않습니다 marginTop 또는 marginBottom 변경 var에 slideNav = (함수() {Jquery 애니메이션 메뉴 아래로
var spanHeight,
nav = $('#nav'),
lis = $('li', nav),
anchors = $('a', lis).css('padding', 0);
$.each(anchors, function() {
var a = $(this),
val = a.text();
a.html('<span>' + val + '</span> <span>' + val + '</span>')
.parent('li')
.height(a.children('span:first').outerHeight())
.end()
.children('span:first')
.css('marginTop', 0) // strange for IE
});
spanHeight = lis.eq(0).height();
lis.hover(function() {
$(this).find('span:first').animate({
marginTop : -56
}, { duration: 200, queue : false });
}, function() {
$(this).find('span:first').animate({
marginTop : 0
}, { duration: 200, queue: false });
});
})();
입니다. 누군가가?
다행 - 진드기에 클릭이 기꺼이 인정 될 것이다! =) – Raad
완료, 다시 감사합니다 :) – Michal