代码如下: [removed] $.fn.silde = function() { var position = function(element) { var top = element.position().top, pos = element.css (“position”); $(window).scroll(function() { var scrolls = $(this).scrollTop(); if (scrolls > top) { if (window.XMLHttpRequest) { element.css({ positi