会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
nie_pengcheng
博客园
首页
新随笔
联系
管理
订阅
2020年12月10日
uniapp封装request
摘要: config.js let url_config = "" if (process.env.NODE_ENV 'development') { // 开发环境 url_config = ''} else { // 生产环境 url_config = ''} export default url_co
阅读全文
posted @ 2020-12-10 15:01 nie_pengcheng
阅读(342)
评论(0)
推荐(0)
2019年9月24日
css 渐变颜色
摘要: background: -webkit-linear-gradient(left, #2745a2 , #4ab5dd); background: -o-linear-gradient(right, #2745a2, #4ab5dd); background: -moz-linear-gradien
阅读全文
posted @ 2019-09-24 17:27 nie_pengcheng
阅读(278)
评论(0)
推荐(0)
2019年3月28日
上拉刷新
摘要: var pageNum = 1;var isScroll = true;var loading_hint = $('<div class="loading-hint">暂无更多数据...</div>');$(window).scroll(function(e) { var scrollTop = $
阅读全文
posted @ 2019-03-28 17:36 nie_pengcheng
阅读(466)
评论(0)
推荐(0)
2019年3月6日
自定义小程序复选框 圆圈复选框
摘要: /* 重写 checkbox 样式 */ /* 未选中的 背景样式 */ checkbox .wx-checkbox-input{ border-radius: 50%;/* 圆角 */ width: 40rpx; /* 背景的宽 */ height: 40rpx; /* 背景的高 */ } /*
阅读全文
posted @ 2019-03-06 13:48 nie_pengcheng
阅读(2949)
评论(1)
推荐(0)
2019年1月13日
解决移动端页面点击图标或按钮产生透明灰色背景
摘要: html,body{-webkit-text-size-adjust: 100%;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}
阅读全文
posted @ 2019-01-13 16:41 nie_pengcheng
阅读(650)
评论(0)
推荐(0)
2019年1月7日
手机网站 点击非menu区域 ,隐藏menu
摘要: $("body,html").on("click",function (e) { let type = e.target; if(type.className != "header-menu" && type.parentNode.className != "header-menu"){ $(".t
阅读全文
posted @ 2019-01-07 16:58 nie_pengcheng
阅读(213)
评论(0)
推荐(0)
2019年1月3日
手机网站meta标签
摘要: <meta name="format-detection" content="telephone=no" /> <meta name="format-detection" content="email=no" /> <meta name="apple-mobile-web-app-capable"
阅读全文
posted @ 2019-01-03 13:36 nie_pengcheng
阅读(196)
评论(0)
推荐(0)
2018年12月29日
网站title左边加小图标
摘要: <link rel="icon" href="/image/favicon.ico" type="img/x-ico" />
阅读全文
posted @ 2018-12-29 11:44 nie_pengcheng
阅读(345)
评论(0)
推荐(0)
2018年12月28日
获取url参数内容
摘要: function getUrlPar(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var url = decodeURI(decodeURI(window.location.search)) var r =
阅读全文
posted @ 2018-12-28 17:34 nie_pengcheng
阅读(309)
评论(0)
推荐(0)
2018年12月14日
英文换行
摘要: word-break:break-all;只对英文起作用,以字母作为换行依据 word-wrap:break-word; 只对英文起作用,以单词作为换行依据 white-space:pre-wrap; 只对中文起作用,强制换行 white-space:nowrap; 强制不换行,都起作用 white
阅读全文
posted @ 2018-12-14 15:02 nie_pengcheng
阅读(630)
评论(0)
推荐(0)
下一页
公告