文章分类 -  web开发

摘要:源码在网上找的,使用了jQuery,定制了一下。$(document).ready(function(e) { t = $('.fixed').offset().top; mh = $('.main').height(); fh = $('.fixed').height(); $(window).scroll(function(e){ s = $(document).scrollTop(); if(s > t - 10){ $('.fixed').css('position','fixed... 阅读全文
posted @ 2013-02-03 21:52 pockry 阅读(128) 评论(0) 推荐(0)