04 2012 档案
摘要:getBoundingClientRect();该方法获得页面中某个元素的左,上,右和下分别相对浏览器视窗的位置,他返回的是一个对象,即 Object,该对象有四个属性:top,left,right,bottom;//document.getElementById('id').getBoundingClientRect().left;
阅读全文
摘要:1 $.browser.msie && ($.browser.version == 6.0)
阅读全文
摘要:Code: 1 (function($){ 2 3 function NAME(elm,options,index){ 4 var _this = this; 5 this.$e = $(elm); 6 this.opts = options; 7 this.init(); 8 } 9 10 NAME.prototype = {11 init : function(){},12 event : function(){}13 }14 15 $.fn.Name = function(options){16 var opts = $.exte...
阅读全文