これは数時間私を困惑させました。これを IE8 でテストすると、「引数が無効です」というエラーが表示されるのはなぜですか?
function resizeContainer() {
wHeight = window.innerHeight;
$('.container').each(function () {
$(this).animate({
height: wHeight
}, 400);
});
$('.content').each(function () {
wHeight = window.innerHeight;
fullPad = wHeight - $(this).height();
if (wHeight < 750) {
cropFactor = 1.7;
}
else {
cropFactor = 2;
}
$(this).animate({
paddingTop: fullPad / cropFactor
});
});
}
正確なエラーは次のとおりです。
無効な引数。jquery.js、行 8826 文字 5