会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
zhao_net
博客园
首页
新随笔
联系
订阅
管理
2018年7月27日
小程序canvas实现圆框图片
摘要: 1.封装此方法 circleImg: function (ctx, img, x, y, r) { ctx.save(); var d = 2 * r; var cx = x + r; var cy = y + r; ctx.beginPath(); ctx.arc(cx, cy, r, 0, 2
阅读全文
posted @ 2018-07-27 14:42 zhao_net
阅读(2163)
评论(0)
推荐(1)
2017年8月24日
正则表达式 100的倍数且最小为1000
摘要: /^(?:[1-9]\d00|[1-9]\d{2,}0)$/ 亲测无误
阅读全文
posted @ 2017-08-24 09:57 zhao_net
阅读(1429)
评论(0)
推荐(0)
2017年7月6日
前端页面自适应
摘要: <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> 页面的头部加上这句话.
阅读全文
posted @ 2017-07-06 10:47 zhao_net
阅读(505)
评论(0)
推荐(0)
2017年7月5日
api 列表渲染
摘要: <!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <link rel="stylesheet" href="styles/demo.css" /> </head> <body> <div id="app"> <ta
阅读全文
posted @ 2017-07-05 09:58 zhao_net
阅读(131)
评论(0)
推荐(0)
2017年7月3日
css 背景图片自适应
摘要: body{ height:100%; overflow:hidden;} .bg { background-image: url(../../img/beijing.jpg); width:100%; height:100%; background-size:100% 100%; position:
阅读全文
posted @ 2017-07-03 11:40 zhao_net
阅读(371)
评论(0)
推荐(0)
2017年6月23日
css 样式 设置图片成为圆形
摘要: <div style="float: left;border-radius:70%; height: 80px; overflow:hidden;"> <img class="mui-icon-image" src="../../img/002 刘运忠.jpg" style="height: 80p
阅读全文
posted @ 2017-06-23 09:27 zhao_net
阅读(14094)
评论(0)
推荐(0)
app 选项卡代码
摘要: <div id="segmented" class="mui-segmented-control"> <a class="mui-control-item mui-active" href="#item1mobile"> 考勤记录 </a> <a class="mui-control-item" h
阅读全文
posted @ 2017-06-23 09:22 zhao_net
阅读(488)
评论(0)
推荐(0)
公告