//创建圆形遮罩,把用户头像变成圆形 /* *CGPointMake(35, 35) 是绘图的中心点, 如果想把控件居中绘圆, 一般用控件的中心点, radius 是圆半径 startAngle是圆周 圆的一周就是2*m_pi */ // UIBezierPath* path = [UIBezier ...
分类:
其他好文 时间:
2016-06-07 12:49:17
阅读次数:
244
h3{color: #fff;background-color: #008eb7;-moz-border-radius: 3px;border-radius: 3px;padding:3px;margin:10px 0px;text-shadow:2px 2px 3px #404040;} 博客 贴 ...
分类:
其他好文 时间:
2016-06-05 18:27:33
阅读次数:
137
加上border-radius:1px即可解决 Demo: ...
分类:
移动开发 时间:
2016-06-02 13:12:52
阅读次数:
3047
v2.1.7发布日期:2015-05-31相关资源:TOUGHRADIUS网站:http://www.toughradius.orgTOUGHRADIUS社区:http://forum.toughcloud.netTOUGHRADIUS博客:http://blog.toughradius.orgTOUGHRADIUS文档:http://docs.toughradius.netGithub项目源码:https://github.com/talkincode/To..
分类:
其他好文 时间:
2016-06-01 10:28:32
阅读次数:
230
1、Firefox中的线性渐变 2、Webkit中的线性变化 3、Firefox中的放射渐变 其中shape使用一个关键字常量值,可以是circle或ellipse(默认值) 渐变开始点以及结束点,半径距离: inner-center与outer-center inner-radius与outer- ...
分类:
Web程序 时间:
2016-05-29 14:58:30
阅读次数:
201
<head lang="en"> <meta charset="UTF-8"> <title></title> <style type="text/css"> .box{ display:block; height:350px; width:250px; background:#ddd; curso ...
分类:
其他好文 时间:
2016-05-26 18:28:12
阅读次数:
225
CSS3中有关于Border的属性一共有三个:设计圆角border-radius,设计边框背景border-image,设计多色边框border-color。 现在我们来说一说设计多色边框border-color属性;那么在CSS3中这个属性又有什么不同之处呢?又将如何使用呢?在CSS2中,我们可以 ...
分类:
Web程序 时间:
2016-05-24 15:09:28
阅读次数:
313
首先要说一下,transition属性ie9是不支持的,从ie10才开始支持 例子是当鼠标移上div后,它会旋转180度。 要点: 用圆角制作圆形盒子,border-radius设置成50%;用box-shadow来制作内填充填满的效果,box-shadow有6个参数水平阴影宽度(px);垂直阴影宽 ...
分类:
Web程序 时间:
2016-05-24 06:55:33
阅读次数:
232
<style type="text/css"> div{ width: 100px; height: 100px; background: green; border-radius: 50px; } </style> <body> <div id="div1" style="/position: a ...
分类:
其他好文 时间:
2016-05-22 00:31:58
阅读次数:
210