06 2017 档案

摘要:方式1:全部js、css等文件打包成一个主js: 只有一个主入口js文件(比如main.js),其余的js均在main.js中调用,最后webpack将该主js文件(main.js)打包成一个js(比如bundle.js),html只需引入这最后打包生成的bundle.js即可 html引入及效果 阅读全文
posted @ 2017-06-29 11:37 ghfjj 阅读(143) 评论(0) 推荐(0)
摘要:响应式布局简明示例,响应式布局最好同时也是自适应布局,然后再配合css3媒体查询,来达到完美的响应式布局。css3的媒体查询ie9一下是不支持的,这太遗憾了,不过幸运的是有大神已经为前端屌丝们写好了用于IE9以下的媒体查询脚本文件,引用方式如下:<!--[if lt IE 9]> <script s 阅读全文
posted @ 2017-06-29 08:43 ghfjj 阅读(187) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-06-29 08:42 ghfjj 阅读(109) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-06-29 08:40 ghfjj 阅读(123) 评论(0) 推荐(0)
摘要:自定义区间: 'itemsCustom':[[0,2],[ 400,3 ],[ 700,3 ],[ 1200,4 ],[ 1551,5 ],[ 1831,6 ]] 大于1831显示6个, 1551-1830,显示5个, 1200-1550,显示4个, 。。。。。。以此类推 阅读全文
posted @ 2017-06-28 17:07 ghfjj 阅读(2249) 评论(0) 推荐(0)
摘要:Fullpage的示例,实现自定义底部高度的方法,而且是不算在滑动的Section里面,在需 要自定义高度的DIV里面,只需要给Section添加.fp-height-auto类就可以实现自定义高度。 http://blog.csdn.net/dengboblog/article/details/5 阅读全文
posted @ 2017-06-23 17:52 ghfjj 阅读(1767) 评论(0) 推荐(0)
摘要:推荐3个滚动 动画库Scrollanim – CSS3 + JavaScript滚动动画库http://www.dowebok.com/217.html scrollReveal.js – 页面滚动显示动画JShttp://www.dowebok.com/134.html WOW.js – 让页面滚 阅读全文
posted @ 2017-06-15 09:19 ghfjj 阅读(302) 评论(0) 推荐(0)
摘要:1.将js文件转换 webpack app/main.js public/webpack.js //将app文件家里的main.js 转换成public文件夹下的webpack.js ps:webpack集成了require.js 此操作可以用对应的webpack.config.js配置来代替: 在 阅读全文
posted @ 2017-06-10 15:52 ghfjj 阅读(164) 评论(0) 推荐(0)
摘要:注释:npm命令大全http://www.cnblogs.com/PeunZhang/p/5553574.html#npm-install 由于npm在国内下载的时候是很慢的,所以这里推荐一个替代npm的淘宝镜像cnpm.之后npm安装请使用cnpm! npm install -g cnpm --r 阅读全文
posted @ 2017-06-09 18:03 ghfjj 阅读(167) 评论(0) 推荐(0)
摘要:$(window).scroll(function(){ var before = $(window).scrollTop(); $(window).scroll(function() { var after = $(window).scrollTop(); if (before<after) { 阅读全文
posted @ 2017-06-08 11:51 ghfjj 阅读(2256) 评论(0) 推荐(0)
摘要:http://echarts.baidu.com/option.html#legend.data 阅读全文
posted @ 2017-06-08 09:25 ghfjj 阅读(1021) 评论(0) 推荐(0)
摘要:myChart.setOption({legend:{left:'left'}}) 阅读全文
posted @ 2017-06-08 09:08 ghfjj 阅读(2378) 评论(0) 推荐(0)
摘要:width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=2.0, user-scalable=yes 阅读全文
posted @ 2017-06-06 17:03 ghfjj 阅读(257) 评论(0) 推荐(0)
摘要:<input type="radio" name="sex" id="male" /><label for="male">Male</label> <input type="radio" name="sex" id="female" /><label for="female">Female</lab 阅读全文
posted @ 2017-06-05 11:29 ghfjj 阅读(460) 评论(0) 推荐(0)
摘要:Chrome和Flash己经是最新版本,也已经设置好允许运行Flash。已经进入 chrome://settings/content 将FLASH设置为“允许网站运行Flash”。 阅读全文
posted @ 2017-06-02 11:15 ghfjj 阅读(160) 评论(0) 推荐(0)
摘要:http://www.codesky.net/article/201705/186834.html 阅读全文
posted @ 2017-06-02 10:12 ghfjj 阅读(240) 评论(0) 推荐(0)