想让1围着图转动起来,哪里写错了,为什么这个1不动?

yld2017 2017-04-24 03:28:29


<!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>

<style>
html, body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, span, a, b, img, em, del, label, form, fieldset, input, p, th, td {
margin: 0;
padding: 0;
}
/*
animation: name duration timing-function delay iteration-count direction;

animation-name 规定需要绑定到选择器的 keyframe 名称。。
animation-duration 规定完成动画所花费的时间,以秒或毫秒计。
animation-timing-function 规定动画的速度曲线。
animation-delay 规定在动画开始之前的延迟。
animation-iteration-count 规定动画应该播放的次数。
animation-direction 规定是否应该轮流反向播放动画。

*/
.ldok {
animation: 30s linear 0s normal none infinite running rotate;
color: #fff;
font-size: 18px;
height: 68px;
left: 87px;
line-height: 1px;
position: absolute;
top: 26px;
width: 10px;
}

.lk_l {
background: rgba(0, 0, 0, 0) url("jinri.png") no-repeat scroll 50% 0;
height: 150px;
position: relative;
width: 190px;
}

@-webkit-keyframes rotate{from{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}
@-moz-keyframes rotate{from{-moz-transform:rotate(0deg)}to{-moz-transform:rotate(360deg)}}
@-ms-keyframes rotate{from{-ms-transform:rotate(0deg)}to{-ms-transform:rotate(360deg)}}
@-o-keyframes rotate{from{-o-transform:rotate(0deg)}to{-o-transform:rotate(360deg)}}
</style>
</head>

<body>

<div class="lk_l left">
<p class="ldok">1</p>
</div>


</body>
</html>




...全文
116 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
yld2017 2017-05-01
  • 打赏
  • 举报
回复
谢谢楼上大神
天际的海浪 2017-04-24
  • 打赏
  • 举报
回复
你给.ldok元素加个背景色就明白了。 这个动画就是让.ldok元素以它自身的中心点来旋转,
yld2017 2017-04-24
  • 打赏
  • 举报
回复
引用 2 楼 jslang 的回复:
对于IE10/IE11浏览器,animation-play-state是不能简写的。
前辈 height: 68px; width: 10px; 这两个属性在这里是什么意思? 为什么改了就不能沿着圆形走了
天际的海浪 2017-04-24
  • 打赏
  • 举报
回复
对于IE10/IE11浏览器,animation-play-state是不能简写的。
天际的海浪 2017-04-24
  • 打赏
  • 举报
回复
把running去掉

87,993

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧