我有这个 jquery 代码,它显示我的 div 并隐藏它没问题,但我无法将它从 css 显示更改为 slideToggle 显示?
$('li.trigger').hover(
function() { $(this).css('background-color', '#fff'); $('div', this).css('display', 'block'); },
function() { $(this).css('background-color', '#fff'); $('div', this).css('display', 'none'); });