IIssNan's Notes

Quick notes


  • 首页

  • 归档

  • 标签

  • 搜索

Useful CSS Snippets

发表于 2011-10-08 | | 阅读次数

Web Beacon

发表于 2011-09-29 | | 阅读次数
1
2
3
window.onbeforeunload = function(){
(new Image()).src = 'http://ex.iissnan.com/event.do?data=' + sData;
}

Essential JavaScript Namespacing Patterns

发表于 2011-09-28 | | 阅读次数

IE6 flicker fix

发表于 2011-09-23 | | 阅读次数

IE6 flicker Fix

通过 CSS 修复

1
2
3
html {
filter: expression(document.execCommand("BackgroundImageCache", false, true));
}

通过 JavaScript 修复

1
2
3
try {
document.execCommand('BackgroundImageCache', false, true);
} catch(e) {};

更改客户端设置

1
2
Tools  >  Internet Options > Temporary Internet files > Settings
选择Automatically,确定

!important 引起 IE 下 JavaScript 脚本报参数无效

发表于 2011-09-16 | | 阅读次数

IE6 - IE9 皆会报参数无效:

1
oElem.style.width = '200px !important';

或者

1
jQuery('#sElem').css({'width' : '200px !important'});

覆盖样式里面已经写有 !important 的规则,目前了解的方法只有通过元素的 cssText 来设置。

1…333435…37
IIssNan

IIssNan

胡编一通,乱写一气

183 日志
6 分类
111 标签
RSS
GitHub Twitter 豆瓣 知乎
© 2011 - 2017 IIssNan
由 Hexo 强力驱动
主题 - NexT.Pisces
0%