摘要: // from http://www.playgoogle.com/post/82.html jquery 中有两个获取元素位置的方法offset()和position(),这两个方法之间有什么异同?使用的时候应该注意哪些问题?什么时候使用offset(),什么时候又使用position()呢? 先看看这两个方法的定义。 offset(): 获取匹配元素在当前视口的相对偏移。 返回的对象... 阅读全文
posted @ 2009-09-18 10:57 looping 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 可同时区分IE8、IE7、IE6、Firefox3、Firefox2的CSS hacks: .test{ color:/*\**/#00f\9; /* IE8 */ } .test, .test:-moz-any-link{ color:#f60; /* Firefox2 */ } .test, .test:default{ color:#000; /* Firefox3 */ *color:#... 阅读全文
posted @ 2009-09-18 02:49 looping 阅读(223) 评论(0) 推荐(0) 编辑