JSDM

HTML

 
1
<!DOCTYPE>
You don't need a DOCTYPE on CodePen. Just put here what you would normally put in the <body>.
2
<html xmlns="http://www.w3.org/1999/xhtml">
3
<head>
4
  <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
5
  <title>表格行移动</title>
6
  <script src="http://code.jquery.com/jquery-1.8.0.min.js"></script>
7
  <style>
8
    
9
  </style>
10
</head>
11
<body>
12
<div class="myMove">
13
  <div onclick="controllMove()">
14
    点击我,让下面的哥们切换转的状态
15
  </div>
16
  <div class="move">
17
    <div class="middle">
18
      <div class="center">
19
        弄个字看效果
20
      </div>
21
    </div>
22
  </div>
23
</div>
24
  </body>
25
</html>
!

CSS

x
 
1
.myMove{
2
      margin: 0 auto;
3
      text-align: center;
4
    }
5
    .move{
6
      width: 180px;
7
      height: 180px;
8
      border-radius: 50%;
9
      text-align: center;
10
      line-height: 150px;
11
      display: table;
12
      vertical-align: middle;
13
      border: 10px solid rgba(0,0,0,.1);
14
      margin: 0 auto;
15
    }
16
    .moveclass{
17
      animation:moveTurn 10s linear infinite;
18
    }
19
    @keyframes moveTurn{
20
      0%{transform:rotate(0deg)}
21
      25%{transform:rotate(90deg)}
22
      50%{transform:rotate(180deg)}
23
      75%{transform:rotate(270deg)}
24
      100%{transform:rotate(360deg)}
25
26
    }
27
    .middle{
28
      width: 94%;
29
      height: 94%;
30
      border-radius: 50%;
31
      background-image: url("images/singlecover.png");
32
      background-position: center;
33
      margin: 0 auto;
34
      vertical-align: middle;
35
      display: table-cell;
36
    }
37
    .center{
38
      width: 80%;
39
      height: 80%;
40
      border-radius: 50%;
41
      background: #666;
42
      background-image: url("images/1.jpg");
43
      text-align: center;
44
      line-height: 20px;
45
      margin: 0 auto;
46
      background-position:center;
47
    }
? ?
? ?
必须是有效的URL
+ 添加另一个资源

JS

xxxxxxxxxx
4
 
1
function controllMove(){
2
    $(".move").toggleClass("moveclass");
3
    $(".move").attr("transform","");
4
  }
必须是有效的URL
+ 添加另一个资源
Close

文件管理 点击文件查看URL

图片

  1. 暂无文件

CSS

  1. 暂无文件

JavaScript

  1. 暂无文件

其他

  1. 暂无文件
拖动文件到上面的区域或者:
加载中 ..................