摘要: 1.css特殊符号hack这种方式估计是最多人使用的方式,原理就是利用特殊字符写出只匹配特定浏览器的css,这里给出常用的例子: IE6IE7IE8IE9IE10FF15Chrome22Opera12Safari5.1.7color:red\9;YYYYcolor:red\0;YYY*color:red;YY+color:red;YY_color:red;Y-color:red;Y2.条件注释 利用IE特有的条件注释针对个版本IE编写特殊的css<!--[if lt IE 9]>Less Than IE9<![endif]--> <!--[if lte IE 9] 阅读全文
posted @ 2012-11-08 19:48 郑银辉 阅读(269) 评论(0) 推荐(0)
摘要: 最近在开发时,偶然又发现jQuery一个bug:SCRIPT5007: 无法获取属性“0”的值: 对象为 null 或未定义jquery-1.8.1.js, 行4978 字符4context = Expr.find["ID"]( token.captures[0].replace( rbackslash, "" ), context, xml )[0];只要执行类似$("#test span")这样的,id选择符后还有选择符的代码在IE7下就会报错。跟踪调试发现,问题出在这里:function( id, context, xml ) 阅读全文
posted @ 2012-11-08 17:44 郑银辉 阅读(249) 评论(0) 推荐(0)