摘要: SummaryThis article discusses some best practices to follow for writing efficient, understandable JavaScript.IntroductionWriting a best practice artic... 阅读全文
posted @ 2014-10-14 17:39 495157297 阅读(169) 评论(0) 推荐(0) 编辑
摘要: …or…’s conditional classesFrom what I’ve seen a good number of developers these days are split between conditional stylesheets and css hacks.You’re us... 阅读全文
posted @ 2014-10-14 15:47 495157297 阅读(256) 评论(0) 推荐(0) 编辑
摘要: #条件声明(在另一篇文章中已有详细讲解说明了),也是解决IE兼容性最常用的方法 #对于不同版本的IE相应的CSS规则,也是一种可选择的方式。IE8及或下版本:添加9(\9)属性后IE7或以下版本:添加属性前添加*IE6:属性前添加_.box { background: gray; /* stand... 阅读全文
posted @ 2014-10-14 14:22 495157297 阅读(447) 评论(0) 推荐(0) 编辑
摘要: 先声明一点:在非IE的浏览器,一下的条件声明因为在里面都是看做注释的,Non-IE browsers ignore this判断为非IE浏览器的条件声明应改为,这样里面的才有效:IE ignores this 除IE外都可识别 所有的IE可识别 仅IE6可识别 IE6以及IE6以下版本可识... 阅读全文
posted @ 2014-10-14 11:17 495157297 阅读(284) 评论(0) 推荐(0) 编辑