0
私はこのコードを使用していますが、Internet Explorerではページのスクロールに続くヘッダーが非常に不快になります。誰でも何が問題なのか知っていますか?Jquery jitter ie
var name = "#header";
var menuYloc = 'null';
menuYloc = parseInt($(name).css("top").substring(0,$(name).css("top").indexOf("px")))
$(window).scroll(function() {
var offset = menuYloc+$(window).scrollTop()+"px";
alert(offset);
$(name).animate({'top':offset},500);
});
デモをお願いします。 – Lobo