一份值得看下的IE6、IE7、IE8 CSS Bug兼容解决记录 阅读全文
2011 年 06 月 14 日
by 影之迷惑
0 评论
1,409 点击
2011 年 06 月 14 日
by 影之迷惑
0 评论
1,409 点击
一份值得看下的IE6、IE7、IE8 CSS Bug兼容解决记录 阅读全文
2011 年 03 月 20 日
by 影之迷惑
0 评论
990 点击
大家都知道欺骗IE不出现Flash激活框的方法很简单 只要在页面上面引入一个js文件,然后用js来控制flash的html代码输出即可。 但是如果我们的脚本是动态加载的就会有两种情况,看以下代码 var s = docuemnt.createElement(“script”); s.src = src; docuemnt.getElementsByTagName(“head”)[0].appendChild(s); var s = docuemnt.createElement(“script”); docuemnt.getElementsByTagName(“head”)[0].appendChild(s); s.src = src; 一眼看下去这两断代码执行结果上面差不多。但是有一段代码无法欺骗IE,引入的js输出flash会出现激活框。 这两断唯一区别就是 先给 script 对象的src赋值 再 append到head。还是先append再赋值。我做了实验,只有先给 script 的src 赋值再 append 到页面上面就可以欺骗IE了。
2011 年 03 月 20 日
by 影之迷惑
0 评论
706 点击
add bookmark for ie & ff & opera 阅读全文
2010 年 04 月 23 日
by 影之迷惑
0 评论
560 点击
一、CSS HACK 以下两种方法几乎能解决现今所有HACK. 1, !important 随着IE7对!important的支持, !important 方法现在只针对IE6的HACK.(注意写法.记得该声明位置需要提前.) <style> #wrapper { width: 100px!important; /* IE7+FF */ width: 80px; /* IE6 */ } </style> 2, IE6/IE77对FireFox *+html 与 *html 是IE特有的标签, firefox 暂不支持.而*+html 又为 IE7特有标签. <style> #wrapper { #wrapper { width: 120px; … 阅读全文
2010 年 02 月 28 日
by 影之迷惑
0 评论
382 点击
In the past, memory leaks haven’t posed huge problems for Web developers. Pages were kept relatively simple and navigation between different locations within a site was a great way to clean up any loose memory. If there was a leak, it was most likely small enough to go unnoticed.
New Web applications live up to higher standards. A page might run for hours without being navigated and retrieve updated information dynamically through Web services. Language features are pushed to the breaking point by combining complex event schemes, object-oriented JScript, and closures to produce entire applications. With these and other changes, certain memory leak patterns are becoming more prominent, especially those previously hidden by navigation.
The good news is that memory leak patterns can be easily spotted if you know what to look for. Most of the troublesome patterns you might face have known workarounds requiring only a small amount of extra work on your behalf. While some pages might still fall prey to small memory leaks, the most noticeable ones can be easily removed. 阅读全文