摘要: 网页开发要面对各种各样的浏览器,让人很头疼,而移动开发中,你不但要面对浏览器,还要面对各种版本的手机,iOS好一点,而安卓就五花八门了,你可能在开发中也被它们折磨过,或者正在被它们折磨,我在这里说几个我在开发中遇到的比较难缠问题,和解决方案,给其他朋友提个醒,因为一旦碰到了这些bug,虽然解决方法不 阅读全文
posted @ 2016-06-03 11:40 蔡云云 阅读(235) 评论(0) 推荐(0) 编辑
摘要: $(window).bind("orientationchange", function (event) { if (event.orientation) { //portrait 竖屏 landscape 横屏 if (event.orientation == 'por... 阅读全文
posted @ 2016-06-03 11:28 蔡云云 阅读(634) 评论(0) 推荐(0) 编辑
摘要: var t1 = null; function btnSave() { if (t1 == null) { t1 = new Date().getTime(); } else { var t2 = new Date().getTime(); if (t2 - t1 < 500) { t1 = t2; return; } else { t1 = t2; } } //写自动代码 } 阅读全文
posted @ 2016-06-03 11:20 蔡云云 阅读(2049) 评论(0) 推荐(0) 编辑
摘要: 1.设定外层div在屏幕中的高度。 2.设置div刷新style="-webkit-overflow-scrolling: touch; overflow: scroll“ 阅读全文
posted @ 2016-06-03 11:13 蔡云云 阅读(1000) 评论(0) 推荐(0) 编辑
摘要: canvas外层的div需要设定属性style="overflow:visible;-webkit-transform: translateZ(0); 阅读全文
posted @ 2016-06-03 11:11 蔡云云 阅读(826) 评论(0) 推荐(0) 编辑