摘要: watch是一个对象,具有键值对;键指被监听的数据,值指处理方式。 值类型包括以下三个: 原文:https://blog.csdn.net/wangxiaoxiaosen/article/details/78487089 阅读全文
posted @ 2018-04-11 11:45 最好的年纪 阅读(127) 评论(0) 推荐(0)
摘要: 效果: 知识点传送门:http://www.zhangxinxu.com/wordpress/2016/06/png-icon-change-color-by-css/ http://www.zhangxinxu.com/study/201606/png-icon-color-fill.html 阅读全文
posted @ 2018-04-11 10:34 最好的年纪 阅读(197) 评论(0) 推荐(0)
摘要: 使用方式: 在html页面开头,引入下面的原生js代码 上述js的意思是: 如果页面的宽度超过了640px,那么页面中html的font-size恒为100px,否则,页面中html的font-size的大小为: 100 * (当前页面宽度 / 640) rem原理: 为什么是640px? 对于手机 阅读全文
posted @ 2018-04-11 10:24 最好的年纪 阅读(11642) 评论(4) 推荐(0)