小白教程
所有教程
关于
Search
172.70.178.170
172.70.178.170
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Css3 pr animation iteration count”的源代码
本页内容
上一节:
Css3_pr_animation_delay
下一节:
Css3_pr_animation_direction
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:animation-iteration-count}}[[Category:css reference|36]] = CSS3 animation-iteration-count 属性 = 播放三次动画: <sample title="" desc="" lang="html" hererun="1"> animation-iteration-count:3; -webkit-animation-iteration-count:3; /*Safari and Chrome*/ </sample> <run name=""> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>小白教程(xiaobai.wang)</title> <style> div { width:100px; height:100px; background:red; position:relative; animation:mymove 3s; animation-iteration-count:3; /* Safari and Chrome */ -webkit-animation:mymove 3s; -webkit-animation-iteration-count:3; } @keyframes mymove { from {top:0px;} to {top:200px;} } @-webkit-keyframes mymove /* Safari and Chrome */ { from {top:0px;} to {top:200px;} } </style> </head> <body> <p><strong>注意:</strong> Internet Explorer 9 及更早 IE 版本浏览器不支持 animation-iteration-count 属性。</p> <div></div> </body> </html> </run> == 浏览器支持 == 表格中的数字表示支持该属性的第一个浏览器版本号。 紧跟在 -webkit-, -ms- 或 -moz- 前的数字为支持该前缀属性的第一个浏览器版本号。 小白教程(xiaobai.wang) 属性 Chrome Internet Explorer / Edge Firefox Safari Opera animation-iteration-count 43.04.0 -webkit- 10.0 16.05.0 -moz- 9.04.0 -webkit- 30.015.0 -webkit-12.0 -o- == 标签定义及使用说明 == animation-iteration-count属性定义动画应该播放多少次。 {| class="table table-striped table-hover" | 默认值: | 1 |- | 继承: | no |- | 版本: | CSS3 |- | JavaScript 语法: | object object.style.animationIterationCount=3 |} == 语法 == <pre> animation-iteration-count: value;</pre> {| class="table table-striped table-hover" ! 值 ! 描述 ! 测试 |- | n | 一个数字,定义应该播放多少次动画 | [[playit.php?f=animation iteration count&preval=1|测试 »]] |- | infinite | 指定动画应该播放无限次(永远) | [[playit.php?f=animation iteration count&preval=infinite|测试 »]] |} == 相关文章 == CSS3 教程: [[css3 animations|CSS3 动画]]
返回至“
Css3 pr animation iteration count
”。
上一节:
Css3_pr_animation_delay
下一节:
Css3_pr_animation_direction