border radius 值类型 百分比 border radius的值是百分比的话,就相当于 。 我们知道在一个正方形内做一个面积最大的圆形,这个圆的半径就为 。所以border radius为50%时,则会形成圆。那么可能有人就会问,border radius为100%时,对应圆的半径长度不就 ...
分类:
其他好文 时间:
2018-08-02 01:59:41
阅读次数:
176
redis cluster 是 redis 官方一个高可用解决方案,cluster 中 redis 共有 2^14 (16384)个slot 槽。创建 cluster 后会平均分配到每个 redis 上。cluster 可以对标 分片机制。这里介绍为本机启动6个redis集群服务,并使用 redis-trib.rb 创建 3主3从的 cluster 。 环境准备六台服务器: CentOS
分类:
其他好文 时间:
2018-08-01 17:18:28
阅读次数:
147
1、设置 border-radius: 20px; ...
分类:
Web程序 时间:
2018-07-31 13:24:01
阅读次数:
133
path 构造器: 1、Path( points : Array ) points是二维点的数组,第一个点作为起点,然后将连续点作为线添加到曲线数组中。如果没有点,画了一个空路径,那么将原点作为currentPoint 属性 1、currentPoint 当前路径的起点 方法 js 1、圆 .abs ...
分类:
其他好文 时间:
2018-07-30 21:39:46
阅读次数:
974
python 装饰器:contextlib @contextmanager with..as..: @closing
分类:
编程语言 时间:
2018-07-29 23:55:08
阅读次数:
312
python base64 : base64.b64encode base64.b64decode base64.urlsafe_b64encode base64.urlsafe_b64decode
分类:
编程语言 时间:
2018-07-29 17:49:25
阅读次数:
145
太极图实现起来很简单,就是把多个标签利用border-radius设置成圆形,然后多个圆利用position定位重叠在一起 代码如下: 1 2 3 4 5 太极图 6 75 76 77 78 79 80 81 82 83 ... ...
分类:
Web程序 时间:
2018-07-28 20:33:47
阅读次数:
169
.login-btn{ margin-top: 60rpx !important; background-color:transparent !important; width: 40%; margin: 0 auto; border-bottom: 1px solid #aaa; color: # ...
分类:
Web程序 时间:
2018-07-26 15:07:38
阅读次数:
393
1.改变滚动条的样式 2.消除input的默认样式 input, button, select, textarea { outline: none; -webkit-appearance: none; border-radius: 0; } 3.改变input,textarea的placeholde ...
分类:
其他好文 时间:
2018-07-24 19:23:09
阅读次数:
151
题目背景 John的农场缺水了!!! 题目描述 Farmer John has decided to bring water to his N (1 <= N <= 300) pastures which are conveniently numbered 1..N. He may bring wa ...
分类:
其他好文 时间:
2018-07-23 22:10:25
阅读次数:
182