上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 25 下一页
摘要: /** * fullPage 1.4.5 * https://github.com/alvarotrigo/fullPage.js * MIT licensed * * Copyright (C) 2013 alvarotrigo.com - A project by Alvaro Trigo */ 阅读全文
posted @ 2017-02-05 14:11 dongxiaolei 阅读(1727) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> <style> *{ margin:0; padding:0;; } ul,li{ list-style:none; } .roundabou 阅读全文
posted @ 2017-01-23 17:55 dongxiaolei 阅读(557) 评论(0) 推荐(0) 编辑
摘要: ;(function(win, lib) { var doc = win.document; var docEl = doc.documentElement; var metaEl = doc.querySelector('meta[name="viewport"]'); var flexibleE 阅读全文
posted @ 2017-01-21 17:17 dongxiaolei 阅读(18471) 评论(0) 推荐(0) 编辑
摘要: function goPAGE() { if ((navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Win... 阅读全文
posted @ 2017-01-21 11:11 dongxiaolei 阅读(23184) 评论(0) 推荐(1) 编辑
摘要: 移动端--rem案例 我是大标题 我是二标题 模块1 模块2 模块3 阅读全文
posted @ 2017-01-20 16:18 dongxiaolei 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 1)布局的时候,各元素的css尺寸=psd上元素的尺寸/(设计稿横向总宽/10)。 2)font-size可能需要额外的媒介查询,并且font-size不使用rem。 拿淘宝来说的,他们用的设计稿是750的,所以html的font-size就是75,如果某个元素时150px的宽,换算成rem就是15 阅读全文
posted @ 2017-01-20 14:53 dongxiaolei 阅读(463) 评论(0) 推荐(0) 编辑
摘要: 这个6.4就是根据设计稿的横向宽度640来确定的,假如你的设计稿是750 那么 html.style.fontSize = windowWidth / 7.5 + 'px'; (1)至此,font-size的基础值就确定好了,而且知道该font-size值是手机deviceWidth跟设计稿的比例值 阅读全文
posted @ 2017-01-20 13:13 dongxiaolei 阅读(193) 评论(0) 推荐(0) 编辑
摘要: function add(a,b) { alert(a+b); } function sub(a,b) { alert(a-b); } add.call(sub,3,1); 例子1中的意思就是用 add 来替换 sub,add.call(sub,3,1) == add(3,1) ,所以运行结果为:a 阅读全文
posted @ 2017-01-19 17:03 dongxiaolei 阅读(177) 评论(0) 推荐(0) 编辑
摘要: function fun_date(aa){ var date1 = new Date(), time1=date1.getFullYear()+"-"+(date1.getMonth()+1)+"-"+date1.getDate();//time1表示当前时间 var date2 = new Date(date1); date2.... 阅读全文
posted @ 2017-01-16 14:13 dongxiaolei 阅读(25043) 评论(0) 推荐(2) 编辑
摘要: $('.cc input').bind('input propertychange', function(){ var total = 0; $("input").each(function(){ total+=(parseFloat($(this).val())?parseFloat($(this).val()):0); }); ... 阅读全文
posted @ 2017-01-05 16:08 dongxiaolei 阅读(5133) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 25 下一页