摘要: function is_weixn(){ var ua = navigator.userAgent.toLowerCase(); if(ua.match(/MicroMessenger/i)=="micromessenger") { return true; } else { return fals 阅读全文
posted @ 2017-10-12 10:43 \面朝阳光/ 阅读(2862) 评论(0) 推荐(0) 编辑
摘要: var arr=[1,2,3,4,5,6] arr.forEach(function(index,item){ // console.log(item) // console.log(index) }) /... 阅读全文
posted @ 2017-10-11 10:12 \面朝阳光/ 阅读(143) 评论(0) 推荐(0) 编辑
摘要: display: inline-block; 阅读全文
posted @ 2017-09-29 15:51 \面朝阳光/ 阅读(349) 评论(0) 推荐(0) 编辑
摘要: html{font-size:50px;}body{font-size:24px;}@media screen and (min-width:320px){ html{font-size:21.333333333333332px;} body{font-size:12px;}}@media scre 阅读全文
posted @ 2017-09-29 11:26 \面朝阳光/ 阅读(139) 评论(0) 推荐(0) 编辑
摘要: (function (doc, win) { var docEl = doc.documentElement, resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize', recalc = function 阅读全文
posted @ 2017-09-29 11:25 \面朝阳光/ 阅读(118) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/YYvam1288/p/5123272.html 好的vue开源项目地址 http://www.cnblogs.com/opendigg/p/6513510.html http://www.cnblogs.com/diasa-fly/archive/20 阅读全文
posted @ 2017-09-27 09:40 \面朝阳光/ 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 一、CSS常见问题 1、H5标签兼容性 解决方案:<script src="http://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script> 2、元素浮动之后,能设置宽度的话就给元素加宽度,如果需要宽度是内容撑开的,就给它里边的块元 阅读全文
posted @ 2017-09-27 09:38 \面朝阳光/ 阅读(875) 评论(0) 推荐(1) 编辑
摘要: 在head里面加这个meta <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content=" 阅读全文
posted @ 2017-09-26 15:24 \面朝阳光/ 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 以下案例,均可直接复制到html中,运行看结果,可直接修改应用 bshare分享 <!-- 单独按钮分享 --> <!-- 引用插分享插件 --><script type="text/javascript" charset="utf-8" src="http://static.bshare.cn/b 阅读全文
posted @ 2017-09-26 15:17 \面朝阳光/ 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 模块一 模块二 模块三 模块四 阅读全文
posted @ 2017-09-25 09:00 \面朝阳光/ 阅读(177) 评论(0) 推荐(0) 编辑