摘要: 1:理解View :<meta name="viewport" content="width=device-width,initial-scale=1.0"> 2. 自适应宽度:width:100%,max-width:640px,min-width:320px 3. 单位:我们可以用px也可以re 阅读全文
posted @ 2016-11-15 15:59 谢玉胜 阅读(1925) 评论(1) 推荐(0) 编辑
摘要: 上图 阅读全文
posted @ 2016-11-15 14:24 谢玉胜 阅读(1522) 评论(0) 推荐(0) 编辑
摘要: hover我们可以用css的方式写,当然,也可以用js的方式写 阅读全文
posted @ 2016-11-15 14:18 谢玉胜 阅读(1805) 评论(0) 推荐(0) 编辑
摘要: 主要思路就是:返回this对象,将所获取的操作元素放入一个数组中。在原型中添加拓展方法 阅读全文
posted @ 2016-11-15 14:16 谢玉胜 阅读(907) 评论(0) 推荐(0) 编辑
摘要: //封装获取元素 /* js的获取元素:ID:document.getElementById(); class:document.getElementsByName()[]; Tag:document.getElementsByTagName()[] 现在我们要简单的封装这个 1:函数写法: function $(id){ ... 阅读全文
posted @ 2016-11-15 14:13 谢玉胜 阅读(292) 评论(0) 推荐(0) 编辑
@allenXieyusheng