08 2014 档案

摘要:写一个Button,有两种方式:其一,直接button标签;其二,input type=”button”。不管哪种方式,Button的宽度在IE6、7下总是不能完美,接下来我们演示一个普通的Button,你可以用IE6或者IE7浏览器看看其显示宽度,然后对比Chrome或者IE8等浏览器,你会发现B... 阅读全文
posted @ 2014-08-29 15:24 ahuing 阅读(228) 评论(0) 推荐(0)
摘要:、原生JavaScript实现字符串长度截取View Code2、原生JavaScript获取域名主机View Code3、原生JavaScript清除空格View Code4、原生JavaScript替换全部View Code5、原生JavaScript转义html标签View Code6、原生J... 阅读全文
posted @ 2014-08-23 08:51 ahuing 阅读(335) 评论(0) 推荐(0)
摘要:iframe 与主框架相互访问方法1.同域相互访问假设A.html与b.htmldomain都是localhost(同域)A.html中iframe 嵌入 B.html,name=myframeA.html有js function fMain()B.html有js function fIframe(... 阅读全文
posted @ 2014-08-15 11:28 ahuing 阅读(726) 评论(0) 推荐(0)
摘要:$("#父窗口元素ID",window.parent.document);对应javascript版本为window.parent.document.getElementByIdx_x("父窗口元素ID");取父窗口的元素方法:$(selector, window.parent.document);... 阅读全文
posted @ 2014-08-15 11:24 ahuing 阅读(398) 评论(0) 推荐(0)