O Chrome ve Firefox üzerinde çalışan tam kod http://jsfiddle.net/vinex08/uhm26em1/Ofset Üst Çalışmıyor ise IOS
jQuery(function ($) {
var distance = $('.c').offset().top,
$window = $(window);
$window.scroll(function() {
if ($window.scrollTop() >= distance) {
$(".b").css({
position: 'fixed',
top: '0'
});
} else {
$(".b").css({
position: 'inherit',
top: '10'
});
}
});
});`
ama ben iPad AIR ve iPhone üzerinden kontrol ettiğimizde, etkisi bile 'sınıf c' önce yürütür üst.
'pozisyonunu kullanmayı deneyin() top' http://jsfiddle.net/Lt9g39md/ – Tushar
hala aynı :( –
sen örneğini çalışan bir _real_ var mı. kodunuzu (JSFiddle'ta değil) aynı şekilde davranıyor? –