下面一段代码是,h5的画圆,半圆,四分之一圆等效果

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
div{ width: 300px;
height: 300px;
border: 1px solid red;
border-radius: 150px;
background:url("image/Capture001.png") 0px 0px no-repeat;
background-size: cover ;
transition: 0.1s;
box-shadow: 10px 10px 10px red; }
div:hover{
transform: rotate(360deg)scale(1);
-webkit-transition:0.1s;
-moz-transition: 0.1s;
-ms-transition: 0.1s;
-o-transition: 0.1s;
transition:all 0.1s linear ; }
@-webkit-keyframes circle{
0%{ transform:rotate(0deg); }
100%{ transform:rotate(-360deg); }
} #a{
width: 300px;
height: 150px;
border: 1px solid red;
border-radius: 150px 150px 0px 0px; }
#b{
width: 300px;
height: 150px;
border: 1px solid red;
border-radius: 0px 0px 150px 150px;
}
#c{
width: 150px;
height: 150px;
border: 1px solid red;
border-radius: 150px 0px 0px 0px;
}
#d{
width: 150px;
height: 150px;
border: 1px solid red;
border-radius: 0px 150px 0px 0px;
}
#e{
width: 150px;
height: 150px;
border: 1px solid red;
border-radius: 0px 0px 150px 0px;
}
#f{
width: 150px;
height: 150px;
border: 1px solid red;
border-radius: 0px 0px 0px 150px;
}
#g{
width: 150px;
height: 300px;
border: 1px solid red;
border-radius: 150px 0px 0px 150px;
}
#h{
width: 150px;
height: 300px;
border: 1px solid red;
border-radius: 0px 150px 150px 0px;
}
</style>
</head>
<body>
<center>
<div></div>
<div id="a"></div>
<div id="b"></div>
<div id="c"></div>
<div id="d"></div>
<div id="e"></div>
<div id="f"></div>
<div id="g"></div>
<div id="h"></div>
</center>
</body>
</html>

  

最新文章

  1. Asp.net MVC的ViewData与ViewBag以及TemplateData的使用与区别
  2. 日志系统实战(一)—AOP静态注入
  3. web响应式图片设计实现
  4. linux yum软件管理
  5. 尽量少用if else
  6. [HDOJ2473]Junk-Mail Filter(并查集,删除操作,马甲)
  7. poj 3352 边连通分量
  8. 端口扫描器之java实现
  9. SuspendLayout()了解方法
  10. Java中的网络支持InetAddress&amp;URL
  11. 前端开发面试题总结之——JAVASCRIPT(三)
  12. python logging详解及自动添加上下文信息
  13. 修改svn默认端口
  14. 安装mysql服务时提示“找不到msvcp140.dll”
  15. override与new的区别
  16. 16 利用Zabbix完成windows监控
  17. python+unittet在linux与windows使用的区别
  18. angularjs探秘&lt;二&gt;表达式、指令、数据绑定
  19. 3.linux基本操作命令
  20. zabbix web 配置

热门文章

  1. 【C/C++】产生随机数
  2. 烂笔头——JAVA.String
  3. 小程序wx:key中的关键字*this
  4. git如何做个人构建
  5. Struts2 基础典型应用
  6. 使用WebStorm/IDEA上传本地项目到GitHub
  7. 萌新三分讲解+基础题ZOJ3203【三分凸性】
  8. profiler Reserved Total
  9. 五分钟了解Mecanim角色动画系统
  10. Educational Codeforces Round 19 A, B, C, E(xjb)