03 2015 档案

摘要:公式:毫米数/25.4*你的电脑的DPI,win7 DPI 100%缩放为96,125%为120,150%为144,200%为192象素数/DPI=英寸数英寸数*25.4=毫米数 阅读全文
posted @ 2015-03-26 14:59 winenr123 阅读(2566) 评论(0) 推荐(0)
摘要:IE6 P标签下的DIV标签无法inline-block,使其触发了hasLayout属性再用csshack 使其inline还是不行,始终要换行解决:把div标签替换成非div标签,比如span等。 阅读全文
posted @ 2015-03-24 22:13 winenr123 阅读(129) 评论(0) 推荐(0)
摘要:console.log.apply 在某些浏览器下无法通过if进行验证,只能通过try catch进行验证;window.zlogs = function(){ try{ window.console.log.apply(console,arguments);... 阅读全文
posted @ 2015-03-22 21:55 winenr123 阅读(377) 评论(0) 推荐(0)
摘要:弹出了chrome的开发工具就会出现以上问题。 阅读全文
posted @ 2015-03-17 11:42 winenr123 阅读(842) 评论(0) 推荐(0)
摘要:$(function(){}) 在页面加载完成后运行的方法 等于window.onload;$("#id"),$(this) 都和jquery一样,tap方法不能阻止事件冒泡,因为zepto是把touch事件和手势事件注册到了document上面。 阅读全文
posted @ 2015-03-15 20:44 winenr123 阅读(137) 评论(0) 推荐(0)