摘要: obj.func.call(obj1) //是将obj1看做obj,调用func方法,将第一个参数看做函数调用的对象,可以看做,将obj的方法给obj1使用ECMAScript规范给所有函数都定义了call()与apply()方法。注意:call()与apply()的第一个参数都是需要调用的函数对象... 阅读全文
posted @ 2015-08-06 21:23 Tobinary 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 例如我们可以用transform: translateZ(0); 来开启硬件加速 。.cube {-webkit-transform: translateZ(0);-moz-transform: translateZ(0);-ms-transform: translateZ(0);-o-transf... 阅读全文
posted @ 2015-08-06 10:52 Tobinary 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 将-webkit-font-smoothing设置为antialiased,变得非常平滑,效果非常不错。-moz-osx-font-smoothing: grayscale;同上代码为:-webkit-font-smoothing: antialiased;-moz-osx-font-smoothi... 阅读全文
posted @ 2015-08-06 10:51 Tobinary 阅读(327) 评论(0) 推荐(0) 编辑
摘要: /*这一句是用来解决在安卓上的点击出现篮框问题*/body{ -webkit-tap-highlight-color:rgba(0,0,0,0); }/*下面是解决ios上去除微信点击蓝色边框 */a:focus,input:focus,p:focus,div:focus{-webkit-tap-h... 阅读全文
posted @ 2015-08-06 10:49 Tobinary 阅读(1003) 评论(0) 推荐(0) 编辑