随笔分类 -  Jquery

摘要:alert($(window).height()); //浏览器当前窗口可视区域高度 alert($(document).height()); //浏览器当前窗口文档的高度 alert($(document.body).height());//浏览器当前窗口文档body的高度 alert($(document.body).outerHeight(true));//浏览器当前窗口文档body的总高度 包括border padding margin alert($(window).width()); //浏览器当前窗口可视区域宽度 alert($(document).width());//浏览器当 阅读全文
posted @ 2013-06-28 08:34 吕川福 阅读(739) 评论(0) 推荐(0)
摘要:(function ($) { $.fn.extable = function (options) { var $default = { evenStyle: "evenstyle", oddStyle: "oddstyle", activeStyle: "activestyle" }; var opts = $.extend({}, $.fn.extend(), $default); $(this).find("tr:even").addClass(opts.evenStyle); $(this).find(&q 阅读全文
posted @ 2012-11-06 10:46 吕川福 阅读(168) 评论(0) 推荐(0)