09 2009 档案
摘要: 很长时间没看 正则表达式了,碰巧今天用到,温故知新了一把 看书学习吧 50% 的举一反三练习中的原创。 一 javascript正则表达式的基本知识 1 javascript 正则对象创建 和用法 声明javascript 正则表达式 var r...
阅读全文
摘要:$("#父窗口元素ID",window.parent.document)...就行了 js 版本 window.parent.document.getElementById()
阅读全文
摘要:// from http://www.playgoogle.com/post/82.html jquery 中有两个获取元素位置的方法offset()和position(),这两个方法之间有什么异同?使用的时候应该注意哪些问题?什么时候使用offset(),什么时候又使用position()呢? 先看看这两个方法的定义。 offset(): 获取匹配元素在当前视口的相对偏移。 返回的对象...
阅读全文
摘要:可同时区分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:#...
阅读全文

浙公网安备 33010602011771号