iphone 4 safrai fixed

<script type="text/javascript">
    if(navigator.userAgent.indexOf("Safari")>0){
        var onav=document.getElementById("fixnav");
        window.onscroll=function(){            
            onav.style.position="absolute";
            onav.style.top=(window.innerHeight+window.scrollY-onav.offsetHeight)+"px";
        }
    }
</script>

 

posted @ 2013-07-19 11:27  wannasing  阅读(155)  评论(0编辑  收藏  举报