css3 扇形
来源:互联网 发布:xy网络流行什么意思 编辑:程序博客网 时间:2024/05/17 02:08
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title></head><body><style>.radiv cite { position: relative; float: left; }.rotate1 { top: 0; left: 0; position: absolute; width: 100px; height: 100px;clip: rect(0px,50px,100px,0px); border-radius: 100px; background-color: yellow;z-index: 3; }.rotate2 { top: 0; left: 0; position: absolute; width: 100px; height: 100px; transform: rotate(-00deg); -webkit-transform: rotate(0deg); clip: rect(0px,50px,100px,0px); border-radius: 100px; background-color: #dddddd; z-index: 5;}.rotate3 { top: 0; left: 0; position: absolute; width: 100px; height: 100px; transform: rotate(180deg); -webkit-transform: rotate(180deg); clip: rect(0px,50px,100px,0px); border-radius: 100px; background-color: yellow; z-index: 3; }.rotate4 { top: 0; left: 0; position: absolute; width: 100px; height: 100px; /*transform: rotate(-00deg);*/clip: rect(0px,50px,100px,0px); border-radius: 100px; background-color: yellow;z-index: 4; }.fzabout { height: auto; ; }.fzabout cite { width: 100px; height: 100px; display: block; position: relative; margin: 0 auto; }.fzabout cite .bg{ position: absolute;left:0;top:0; width: 100px; height: 100px; background: #dddddd; z-index: 2; border-radius: 100%;}.fzabout cite.a1 .fontdiv font{ color: #4cb7b2;}.fzabout cite.a2 .fontdiv font{ color: #da5550;}.fzabout cite.a3 .fontdiv font{ color: #bf954d;}.fzabout cite.a1 .rotate1,.fzabout cite.a1 .rotate3,.fzabout cite.a1 .rotate4{background-color: #4cb7b2;}.fzabout cite.a2 .rotate1,.fzabout cite.a2 .rotate3,.fzabout cite.a2 .rotate4{background-color: #da5550;}.fzabout cite.a3 .rotate1,.fzabout cite.a3 .rotate3,.fzabout cite.a3 .rotate4{background-color: #bf954d;}.fzabout .fontdiv { position: absolute; width: 90px; height: 90px; overflow: hidden; left: 5px; top: 5px; z-index: 10; font-style: normal; font-size: 12px; background: #fff; border-radius: 50%; text-align:center }.fzabout .fontdiv font { display: block; font-style: normal; font-size: 21px; margin: 16px 0 5px 0; }.fzabout .fontdiv span { display: block; font-style: normal; font-size: 16px; }.fzabout dl { overflow: hidden; float:left }.fzabout dl dd { margin: 10px 0; }.fzabout dl dt strong{ font-weight: normal;}</style><div class="fzabout"> <dl class="a1"> <dd> <cite class="a1 b1" > </cite> </dd> </dl> <dl class="a2 b1"> <dd> <cite class="a2 b2" > </cite> </dd> </dl> <dl class="a3 b1"> <dd> <cite class="a3 b3" > </cite> </dd> </dl> <div style=" clear:both"></div> <dl class="a1 "> <dd> <cite class="a1 b4" > </cite> </dd> </dl> <dl class="a2"> <dd> <cite class="a2 b5" > </cite> </dd> </dl> <dl class="a3"> <dd> <cite class="a3 b6" > </cite> </dd> </dl></ul><script type="text/javascript" src="../public/js/jquery-2.0.3.min.js"></script><script>rotate($(".fzabout cite.b1"),55,"200")rotate($(".fzabout cite.b2"),40,"ds")rotate($(".fzabout cite.b3"),80,"333")function rotate(obj,deg,size){var deg1=360*(deg/100) if(deg<51){obj.html('<div class="fontdiv"><font>'+deg+'%</font><span>'+size+'</span></div><i class="rotate1" style="transform: rotate('+deg1+'deg);-webkit-transform: rotate('+deg1+'deg);"></i><i class="rotate2" ></i><i class="bg"></i>') }else{obj.html('<div class="fontdiv"><font>'+deg+'%</font><span>'+size+'</span></div><i class="rotate3"></i><i class="rotate4" style="transform: rotate('+deg1+'deg);-webkit-transform: rotate('+deg1+'deg);"></i><i class="bg"></i>')}}rotate1($(".fzabout cite.b4"),55)rotate1($(".fzabout cite.b5"),40)rotate1($(".fzabout cite.b6"),80)function rotate1(obj,deg){var deg1=360*(deg/100) if(deg<51){obj.html('<i class="rotate1" style="transform: rotate('+deg1+'deg);-webkit-transform: rotate('+deg1+'deg);"></i><i class="rotate2" style=" background:#fff"></i>') }else{obj.html('<i class="rotate3"></i><i class="rotate4" style="transform: rotate('+deg1+'deg);-webkit-transform: rotate('+deg1+'deg);"></i>')}}</script></body></html>
0 0
- css3 扇形
- css3扇形菜单
- html5+css3实现扇形
- CSS3扇形动画菜单
- css3编写扇形
- css3实现扇形列表
- [CSS3学习]画出一个扇形
- css3动画制作扇形导航
- CSS3 和 jQuery实现的一款扇形色卡
- 纯CSS3打造动感漂亮的扇形菜单
- CSS3仿移动淘宝左下角扇形菜单效果
- 如何使用css3绘制任意角度扇形+动画
- CSS3--利用transform和transition属性制作扇形导航
- css3实现三角形、扇形和特殊的形状等
- CSS3动画-扇形展开-(内有js代码)
- css3+jq制作百分比圆环,扇形图(两种颜色)
- 扇形坐标
- 绘制扇形
- [hdu 5833 Zhu and 772002] 高斯消元求异或方程组
- 在项目什么时候选择使用GCD,什么时候选择NSOperation?
- Hdu 3666 THE MATRIX PROBLEM(差分约束)
- 51 nod 1183 编辑距离
- CentOS下搭建个人Python开发环境
- css3 扇形
- 用Editplus开发Java
- UVALive 6859--凸包
- ACdream 1083人民城管爱人民
- 高并发的核心技术-幂等的实现方案
- 修改了jsp内容,但是运行在tomcat中没有变化
- android数据传递(三)之Activity传递到Fragment
- awk笔记
- 【Hibernate】--第一个实例:实现数据表的创建与数据导入