このコードのように、var "el"に対して未定義を返します
$('.element').each(function(){
var el = $(this);
setTimeout(function(el) {
el.css({ marginTop: -100 });
}, 550);
$(window).resize(function(el) {
setTimeout(function(el) {
el.css({ marginTop: -100 }); //this is where el is undefined
}, 550);
})
});
私は何が間違っているのですか?